<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Matt,<div><br></div><div>Projection is fine: I'll just make it from a thin specified region. </div><div><br></div><div>So, I can do a:</div><div><br></div><div>projy = pf.h.proj(….)</div><div><br></div><div>then </div><div><br></div><div>p = projy.to_pw(…)</div><div><br></div><div>but how can I set the font size? There doesn't seem to be an argument in the call:</div><div><br></div><div><a href="http://yt-project.org/doc/_modules/yt/data_objects/data_containers.html#AMRProjBase.to_pw">http://yt-project.org/doc/_modules/yt/data_objects/data_containers.html#AMRProjBase.to_pw</a></div><div><br></div><div>will it accept: </div><div><br></div><div><div>p.set_font({"size": 30}) ?</div></div><div><br></div><div><br></div><div>Elizabeth</div><div><br></div><div><br></div><div><br><div><div>On Jul 9, 2013, at 9:24 PM, Matthew Turk <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Elizabeth,<br><br>Sorry, I should have been more clear. PlotWindow is the type of object<br>created by the call to SlicePlot, so to_pw(...) is similar to calling<br>SlicePlot(...) (identical, really) except that you have greater<br>control over the specific Slice data itself that is used. I was just<br>saying that you can construct the underlying object with more<br>flexibility; it does not at all require a GUI.<br><br>Looking over the code, as I was preparing an example, it actually<br>looks to me like we don't have a data_source option presently.<br>There's an open issue for re-adding this to 3.0, but reading the<br>specifics for 2.5/2.6, it is not there.<br><br><a href="https://bitbucket.org/yt_analysis/yt/issue/521/ytslice-no-longer-has-a-data_source">https://bitbucket.org/yt_analysis/yt/issue/521/ytslice-no-longer-has-a-data_source</a><br><br>So right now, projections are your best bet for data_source-ful<br>operations for images.<br><br>-Matt<br><br>On Jul 9, 2013 8:12 AM, "Elizabeth Tasker"<br><tasker@astro1.sci.hokudai.ac.jp> wrote:<br><blockquote type="cite"><br>Hi Matt,<br><br>So I'd need to have a physical pop-up plot window? That's a little problematic (many images created via a script and computer not local). Is FRB the only way round this atm?<br><br><br>Could I make a request for the future that SlicePlot has the ability to take a data_source? add_slice has it, so perhaps this is generally quite useful? Or for add_slice to have a font option, though maybe that way of making images is being fazed out?<br><br>Elizabeth<br><br><br>On Jul 9, 2013, at 9:06 PM, Matthew Turk <matthewturk@gmail.com> wrote:<br><br>Hi Elizabeth,<br><br>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.<br><br>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.<br><br>Matt<br><br>On Jul 9, 2013 7:45 AM, "Elizabeth Tasker" <tasker@astro1.sci.hokudai.ac.jp> wrote:<br><blockquote type="cite"><br>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 <matthewturk@gmail.com> wrote:<br><br><blockquote type="cite">Hi Elizabeth,<br><br>On Tue, Jul 9, 2013 at 3:57 AM, Elizabeth Tasker<br><tasker@astro1.sci.hokudai.ac.jp> wrote:<br><blockquote type="cite">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></blockquote><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><blockquote type="cite"><br>Thanks!<br><br>Elizabeth<br>_______________________________________________<br>yt-users mailing list<br>yt-users@lists.spacepope.org<br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br></blockquote>_______________________________________________<br>yt-users mailing list<br>yt-users@lists.spacepope.org<br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br></blockquote><br>_______________________________________________<br>yt-users mailing list<br>yt-users@lists.spacepope.org<br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br></blockquote><br>_______________________________________________<br>yt-users mailing list<br>yt-users@lists.spacepope.org<br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br><br><br><br>_______________________________________________<br>yt-users mailing list<br>yt-users@lists.spacepope.org<br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br><br></blockquote>_______________________________________________<br>yt-users mailing list<br>yt-users@lists.spacepope.org<br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br></blockquote></div><br></div></body></html>