Hi,<br><br>Have you tried setting the limit through the plot collection, so:<br>pc.set_xlim(0, 10)<br>instead of<br>p.set_xlim(0, 10)<br><br>With rays, I will generally plot the data by hand using matplotlib.  You can do something like this:<br>
from matplotlib import pyplot<br>ray = pf.h.ray([0.,5.,5.], [10.,5.,5.])<br>pyplot.plot(ray['x'], ray['Density'])<br><br>Britton<br><br><div class="gmail_quote">On Tue, Oct 19, 2010 at 3:09 PM, Elizabeth Tasker <span dir="ltr"><<a href="mailto:taskere@mcmaster.ca">taskere@mcmaster.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
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!):<br>
<br>
p = pc.add_ray([0.,5.,5.], [10.,5.,5.], "Density")<br>
<br>
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:<br>
<br>
p.set_xlim(0,10.0)<br>
<br>
but it seemed disinterested. Can I correct this?<br>
<br>
Elizabeth<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>