<div class="gmail_extra">Hi Chris,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Here is another option for making some publication quality plots.</div><div class="gmail_extra"><a href="http://hub.yt-project.org/ytScripts/fancy-multi-panel-plots/">http://hub.yt-project.org/ytScripts/fancy-multi-panel-plots/</a></div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Britton<br><br><div class="gmail_quote">On Sun, Apr 29, 2012 at 12:01 AM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Chris,<br>
<br>
One quick note to add to what Nathan wrote is that we are pretty<br>
careful to use the MathText rendering, which is pseudo-LaTeX.  For<br>
instance, you can set labels with:<br>
<br>
ax.set_xlabel(r"$\mathrm{Something}\/\mathrm{Interesting}\/[\mathrm{x}^3]$")<br>
<br>
Also, I fully support using the FRB's for publication quality plots,<br>
instead of plot collections.<br>
<br>
-Matt<br>
<div class="HOEnZb"><div class="h5"><br>
On Sat, Apr 28, 2012 at 10:22 PM, Nathan Goldbaum <<a href="mailto:goldbaum@ucolick.org">goldbaum@ucolick.org</a>> wrote:<br>
> Hi Chris,<br>
><br>
> Someone else that knows better than me can correct me, but it looks like all<br>
> of the matplotlib imports happen in yt/visualization/_mpl_imports.py.<br>
><br>
> The only configuration is this line: matplotlib.rc('contour',<br>
> negative_linestyle='solid') which changes the default linestyle for contour<br>
> plots.<br>
><br>
> Other than that, if you use the Agg backend, you should be able to produce<br>
> plots that look like yt plots.  I believe yt uses the default fonts and<br>
> matplotlib colortables (except for the ones in<br>
> yt/visualization/_colormap_data.py.  If you're trying to make publication<br>
> quality plots, you may want to take a look at the EPS writer that John Wise<br>
> wrote (yt/visualization/eps_writer.py) which leverages pyx to make really<br>
> nice native postscript plots, or look at the various plot types (e.g. the<br>
> RavenPlot in yt/visualization/plot_types.py).<br>
><br>
> Personally, if I have to make consistent looking plots, I'd like to be in<br>
> complete control so I use FixedResolutionBuffers and custom matplotlib<br>
> scripts.<br>
><br>
> Hope that helps!<br>
><br>
> -Nathan<br>
><br>
> On Apr 28, 2012, at 6:59 PM, Christopher Moody wrote:<br>
><br>
> Hi all,<br>
> Aesthetically, it'd be nice to make matplotlib plots with a consistent<br>
> style as yt-made plots so that fonts, sizes, color palettes and so on<br>
> agree. I imagine that this means I have to find yt's default<br>
> matplotlib rc, or something analogous, somewhere.<br>
><br>
> Many thanks for the help!<br>
> chris<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>
> !DSPAM:10175,4f9ca0a363302512813236!<br>
><br>
><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>
><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>
</div></div></blockquote></div><br></div>