[yt-users] pc.add_ray
Elizabeth Tasker
taskere at mcmaster.ca
Tue Oct 19 12:40:32 PDT 2010
Hi Britton,
Thank you! The second option works perfectly.
Elizabeth
Britton Smith wrote:
> Hi,
>
> Have you tried setting the limit through the plot collection, so:
> pc.set_xlim(0, 10)
> instead of
> p.set_xlim(0, 10)
>
> With rays, I will generally plot the data by hand using matplotlib.
> You can do something like this:
> from matplotlib import pyplot
> ray = pf.h.ray([0.,5.,5.], [10.,5.,5.])
> pyplot.plot(ray['x'], ray['Density'])
>
> Britton
>
> On Tue, Oct 19, 2010 at 3:09 PM, Elizabeth Tasker <taskere at mcmaster.ca
> <mailto:taskere at mcmaster.ca>> wrote:
>
> Hi,
>
> I'd like to plot properties along a line through my simulation
> box, something that wasn't hard to discover how to do in yt (not
> least because Matt demonstrated it at the meeting in San Diego!):
>
> p = pc.add_ray([0.,5.,5.], [10.,5.,5.], "Density")
>
> But the plot at the end has an x-axis running from 0 to 1.0,
> rather than 0. to 10.0. I tried adding:
>
> p.set_xlim(0,10.0)
>
> but it seemed disinterested. Can I correct this?
>
> Elizabeth
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org <mailto: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