<div dir="ltr"><div><div><div><div><div><div>Hi Kathy, <br><br></div>Have you looked at using EPS writer? The eps_multiplot_yt function should do what you want.<br></div>A example of the function call is shown below. <br><br>
</div>I guess for your case NCOLS would be 20 and NROWS 1.<br></div>projections is a list of the objects you are trying to plot (it was projections in my case but it could be profiles, slices etc). <br></div>margins is the distance between images in cm so you can place the images as close as you want to each other. <br>
</div>cb_flags is a list of bools. This will be of len 20 in each case and each set to True if you a color bar in each case. <br><div><div><div><div>You can shrink the color bar if you like in x and y dir - again optional.<br>
</div><div>Finally you can scale the plot using figsize. The title box will write the timeseries number for you if that is what you meant too.  <br><br>mp = eps.multiplot_yt(NCOLS, NROWS, projections, bare_axes=True, margins=(0.75,0.75),<br>
                              cb_flags=cb_flags, shrink_cb = (0.85, 0.95), figsize=(12,12))<br>CurrentTime = FinalTime - pf.current_time * pf['years']<br>mp.title_box("$\Delta$T = %d yrs" % (CurrentTime), loc=(0.55,0.93),<br>
                     color=white, bgcolor=None, text_opts=[pyx.text.size.large])<br> mp.save_fig("Temperature_Density_%04d" % (result_id),<br>                    format="eps")<br><br></div><div>Can't guarantee this will work but it's pretty powerful. Have a look at yt/visualisation/eps_writer.py for more details. <br>
<br></div><div>John<br><br><br></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 16, 2014 at 6:25 PM, Michael Zingale <span dir="ltr"><<a href="mailto:michael.zingale@stonybrook.edu" target="_blank">michael.zingale@stonybrook.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">you might also want to keep in mind the matplotlib tight_layout() command which really helps with the spacing, etc. when doing multiple plots.<div>
<br></div><div>Mike</div></div><div class="gmail_extra"><div><div class="h5"><br>
<br><div class="gmail_quote">On Thu, Jan 16, 2014 at 11:22 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 Kathy,<br>
<br>
Thanks for writing!  Sorry to hear things aren't working.<br>
<div><br>
On Wed, Jan 15, 2014 at 5:45 PM, Kathy Eastwood <<a href="mailto:kathy.eastwood@nau.edu" target="_blank">kathy.eastwood@nau.edu</a>> wrote:<br>
> Hi, everybody<br>
><br>
> I've been working off the example scripts on the yt website, and can't quite<br>
> seem to do what I want to do.  I want to plot something like 20 tall/skinny<br>
> images in a horizontal row, and label the time steps below, and put the<br>
> colorbar vertically.  I am constrained to using frb's because my images are<br>
> not square.  I have managed to make a plot with three such images, although<br>
> I haven't managed to put in the time step labels, and there is white space<br>
> between the images.  But it was very much brute force -- I had to create a<br>
> separate set of axes for each image.<br>
<br>
</div>So, I think you might end up having to do it brute force.  Getting the<br>
layout precisely correct may be tricky, and you'll probably want to<br>
adjust it carefully to make it look exactly as you like.<br>
<div><br>
><br>
> All the example scripts that use frb's use the "get_multi_plot" inside yt,<br>
> whereas the only example of a time series in the image plots uses the<br>
> AxesGrid from matplotlib. I have not managed to make the AxesGrid work with<br>
> an frb.  There is also a non-image-plotting example in the bootcamp of using<br>
> "TimeSeriesData" to go through a lot of files, which would be great, but I<br>
> have not been able to figure out how to translate that into what I need.<br>
<br>
</div>get_multi_plot is not the best -- I think AxesGrid might be the best<br>
bet, but I have not had too much experience.  In general, you may not<br>
even need it, if you can construct your own axes by creating a Figure<br>
in matplotlib of the right size, and then Axes objects within it.  But<br>
I'm not sure I have a ready made solution that does 20 in a row.  I<br>
know Jeff Oishi has done N in a row (where 5<N<20) but I don't know if<br>
he's got the script handy.<br>
<br>
-Matt<br>
<div><br>
><br>
> If anybody has a sample script of something vaguely similar to this, I would<br>
> really appreciate it!<br>
><br>
> thanks<br>
> kathy<br>
><br>
> --<br>
> Kathy DeGioia Eastwood, Ph.D.<br>
> Professor of Physics and Astronomy<br>
> Northern Arizona University<br>
> Flagstaff, AZ 86011-6010<br>
> Ph: <a href="tel:928-523-7159" value="+19285237159" target="_blank">928-523-7159</a>   FX: <a href="tel:928-523-1371" value="+19285231371" target="_blank">928-523-1371</a><br>
> <a href="mailto:Kathy.Eastwood@nau.edu" target="_blank">Kathy.Eastwood@nau.edu</a><br>
> deliveries: 602 S. Humphreys St., Bldg 19 Rm 209<br>
><br>
</div>> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">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" target="_blank">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><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div>Michael Zingale</div><div>Associate Professor</div><div><br></div><div>Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY 11794-3800</div>

<div><i>phone</i>:  <a href="tel:631-632-8225" value="+16316328225" target="_blank">631-632-8225</a></div><div><i>e-mail</i>: <a href="mailto:Michael.Zingale@stonybrook.edu" target="_blank">Michael.Zingale@stonybrook.edu</a></div>
<div><i>web</i>: <a href="http://www.astro.sunysb.edu/mzingale" target="_blank">http://www.astro.sunysb.edu/mzingale</a></div>

</font></span></div>
<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></blockquote></div><br></div>