<p dir="ltr">Hi Elizabeth,</p>
<p dir="ltr">Yup, it takes a slice - however it was created - and makes it into a plot window. So the idea is you create the underlying object and then you can get the plot window (rather than the FRB) and make the font adjustments and so on to that. Not all of the constructor arguments are exposed in to_pw but all of them can be set on the resultant object.</p>
<p dir="ltr">One design choice made with the plot window was to avoid over-reaching - rather than make the constructor over complicated, we try to make it easy to make a plot window a different way.</p>
<p dir="ltr">Matt</p>
<div class="gmail_quote">On Jul 9, 2013 7:45 AM, "Elizabeth Tasker" <<a href="mailto:tasker@astro1.sci.hokudai.ac.jp">tasker@astro1.sci.hokudai.ac.jp</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Matt,<br>
<br>
Sorry; I don't understand.<br>
<br>
to_pw is "to plot window"?<br>
<br>
Does that allow me to specify a font size and create a png?<br>
<br>
<br>
Elizabeth<br>
<br>
On Jul 9, 2013, at 6:27 PM, Matthew Turk <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>> wrote:<br>
<br>
> Hi Elizabeth,<br>
><br>
> On Tue, Jul 9, 2013 at 3:57 AM, Elizabeth Tasker<br>
> <<a href="mailto:tasker@astro1.sci.hokudai.ac.jp">tasker@astro1.sci.hokudai.ac.jp</a>> wrote:<br>
>> Hi everyone,<br>
>><br>
>> I seem to have to make sad choice when creating slices or projections:<br>
>><br>
>> I can't seem to both use a region as the data source for my slice/projection and also specify a font size for the legend / axis labels.<br>
>><br>
>> With SlicePlot, I can use "fontsize" but there is no data_source argument.<br>
>><br>
>> With add_projection (which isn't quite a slice but close enough), I have a data_source argument but "fontsize" isn't recognised (I also tried "p.set_font({"size": 30})" but to no avail).<br>
>><br>
>> Is it possible to have a slice (or projection) with both these options available without resorting to creating frbs?<br>
><br>
> What about making the slice, then using to_pw() on the slice object?<br>
><br>
> sl = pf.h.slice(...)<br>
> sl.to_pw(...)<br>
><br>
> Or the same with projections?<br>
><br>
> -Matt<br>
><br>
>><br>
>> Thanks!<br>
>><br>
>> Elizabeth<br>
>> _______________________________________________<br>
>> yt-users mailing list<br>
>> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote></div>