[yt-users] Side by side plotting

David Collins dcollins at physics.ucsd.edu
Mon Jul 20 21:20:33 PDT 2009


Great, that doesn't look too bad at all.  Thanks!
d.

On Mon, Jul 20, 2009 at 8:01 PM, Matthew Turk<matthewturk at gmail.com> wrote:
> Hi Dave,
>
> Yes, there is.  Jeff Oishi might be able to chime in with a bit more,
> but setting up a multi-plot is included with yt.  Right now the
> colorbars are a bit tricky; however, with the next proper release of
> Matplotlib (including a new axes_grid toolkit by Jae-Joon Lee which
> will simplify this all dramatically) this will be expanded and made
> better.  Additionally, we have to play a few games here because the
> current yt mechanism for updating plots is to wipe the axes;
> newer-than-1.5 will be using a data replacement mechanism.  In short,
> this will get better, but right now it needs kid gloves.
>
> Here's my current sketch of the script, which I have tried to comment
> quite a bit, because -- as I mentioned above -- it's still mildly
> cumbersome to do this.  (Although, looking back, it's still not that
> many lines of code, so I guess it's not so bad.)  You can download a
> raw version of the script by clicking 'raw' at the top.
> Alternatively, clone the hg repository (and contribute some cookbook
> recipes of your own!)
>
> http://hg.enzotools.org/cookbook/file/e6d3d25ecdf2/recipes/multi_plot.py
>
> You can replace the hash with 'tip' to get the latest version.
>
> Hope that helps!  This is part of the newly-expanding cookbook of yt
> scripts.  By the end of the week this cookbook should be expanded
> quite a bit, as we're currently running through an Enzo+yt tutorial at
> the Princeton workshop, and I'm adding to it as we go.
>
> I've attached a sample image I made with this script.
>
> -Matt
>
>
>
> On Mon, Jul 20, 2009 at 8:00 PM, david collins<antpuncher at gmail.com> wrote:
>> Hi, All--
>>
>> Is there a straight forward, or not so straight forward, way to plot
>> projection/slice of two quantities side by side?
>>
>> d.
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>



More information about the yt-users mailing list