[yt-users] Setting zlim

David Collins dcollins4096 at gmail.com
Thu Apr 25 13:13:27 PDT 2013


Thanks.  I am clearly not having a very smart day.


On Thu, Apr 25, 2013 at 2:05 PM, Nathan Goldbaum <nathan12343 at gmail.com>wrote:

> Sorry, that was a bit too hasty,
>
> it's pw.set_zlim('Density', 0.1, 50)
>
> -Nathan
>
> On Apr 25, 2013, at 1:05 PM, Nathan Goldbaum <nathan12343 at gmail.com>
> wrote:
>
> > Hi Dave,
> >
> > It's pw.set_zlim(0.1, 50)
> >
> > -Nathan
> >
> > On Apr 25, 2013, at 1:02 PM, david collins <antpuncher at gmail.com> wrote:
> >
> >> Hi, all--
> >>
> >> I'm trying to set the color map and extents for some plots, but it
> doesn't seem to be taking:  If I do
> >>
> >>    field= 'Density'
> >>    proj = pf.h.proj(ax,field,source=cut_region)
> >>    pw = proj.to_pw()
> >>    pw.set_cmap('Density','gray')
> >>    pw.set_zlim = [0.1,50]
> >>    pw.save('wtfc.png')
> >>    pp = ProjectionPlot(pf,0,'Density')
> >>    pp.set_cmap('Density','gray')
> >>    pp.set_zlim = [0.1,50]
> >>    pp.save('wtfd.png')
> >>
> >> the two plots should have the same range on the color map, but they
> don't.  I tried calls to "refresh" n both pp and pw, but that didn't help.
>  What am I missing?
> >>
> >> d.
> >>
> >> --
> >> Sent from my computer.
> >> _______________________________________________
> >> 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/20130425/ef5930fd/attachment.htm>


More information about the yt-users mailing list