[yt-users] multiplot with multiple datasets

Britton Smith brittonsmith at gmail.com
Mon Mar 21 12:30:18 PDT 2011


Hi JC and everyone,

The new yt-supplemental, which should be in the src directory next to the yt
install, contains a repo called yt-advanced-plotting.  yt-advanced-plotting
features some routines that can be used to make an array of nice looking
single and multipanel images from projections.  Using this framework,
projections and image-making are done in two separate steps.  In the first
step, the projections are made and saved into hdf5 files.  This can be
helpful if the data you're working with is too large to be downloaded
localled.  The images are made in the second step from reading in the hdf5
files that have been created.  The yt-advanced-plotting repo has a number of
example scripts that should explain everything.  Additionally, there is
another directory within this called advanced_examples, which will allow you
to do such things as overlay particles, colored by age, and sized by mass,
for example.  In all of these, the image source can be different for each
panel in a multipanel image.

These functions have only been recently added, so feel free to provide any
feedback you have.

Britton

On Sun, Mar 20, 2011 at 8:06 PM, Matthew Turk <matthewturk at gmail.com> wrote:

> Hi Chris and JC,
>
> You're right; they are not up to date in the build.  It was a mistake
> in how I built the docs last.  I updated all the *API* content, but
> not the content of the *recipes*.  When I get back to my desk tonight
> (I'm out enjoying some Sunday afternoon recreation time right now) I
> will rebuild the docs, but I'll build from the development branch so
> they will reflect the upcoming 2.1 release in a few minor ways, like
> minor shifts in the light cone API.  Sam's release manager for 2.1,
> and last I heard from him he's planning on late this week or early
> next.
>
> Also, JC, Britton, Sam and Jeff have been working on making it easier
> to do more complicated things with montages and compositing of
> arbitrary images.  They might be able to chime in with more; multiplot
> is kind of a sledge hammer and they're putting the finishing touches
> on their nice set of drill bits and screw drivers.
>
> Best,
>
> Matt
>
> On Sun, Mar 20, 2011 at 4:59 PM,  <chris.m.malone at gmail.com> wrote:
> > I should say, the recipe is up to date (in the hg repository), but the
> > Cookbook website is not. Same goes for the regular Multiplot recipe.
> >
> > Matt, could you update these?
> >
> > Chris
> >
> > On Mar 20, 2011 7:47pm, chris.m.malone at gmail.com wrote:
> >> Hi Jean-Claude,
> >>
> >> Some of the recipes in the Cookbook are a bit outdated - for example,
> >> module names like "raven" have been replaced with more meaningful names.
> >> Actually, now the get_multi_plot() method lives in the plot_collection
> >> module, which is automatically loaded into the namespace when you `from
> >> yt.mods import *`. In other words, change the `raven.get_mult_plot(...)`
> to
> >> just `get_multi_plot(...)` and it should work ok, although I haven't
> tested
> >> this.
> >>
> >> Chris
> >>
> >>
> >> On Mar 20, 2011 7:27pm, Jean-Claude Passy jcpassy at gmail.com> wrote:
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > Hi all,
> >> >
> >> >
> >> >
> >> > I would like to create a multi plot equivalent to the procedure
> >> > described in the Cookbook (Multi plot 3x2) BUT with
> >> > different datasets (1 slice for 1 dataset).
> >> >
> >> >
> >> >
> >> > The first issue I am encountering is that the module raven is not
> >> > detected:
> >> >
> >> >
> >> >
> >> > #############################################################
> >> >
> >> > Traceback (most recent call last):
> >> >   File "/rpod2/jcpassy/Enzo/python/MultiPlot.py", line 20,
> >> > in
> >> >     fig, axes, colorbars = raven.get_multi_plot( 2, 4,
> >> > colorbar=orient, bw = 4)
> >> > NameError: name 'raven' is not defined
> >> > #############################################################
> >> >
> >> >
> >> >
> >> > Then, is there a specific description somewhere of how to do a multi
> >> > plot with different datasets ?
> >> >
> >> >
> >> >
> >> > Thanks a lot for your help,
> >> >
> >> >
> >> >
> >> > JC
> >> >
> >> >
> >> >
> >> >
> >> >
> > _______________________________________________
> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20110321/80ba789c/attachment.html>


More information about the yt-users mailing list