<div dir="ltr">Hi Noel,<div><br></div><div>I would create the ray object and plot by hand, rather than relying on PlotCollection:</div><div><br></div><div>pf = load(...)</div><div>ray = pf.h.ray(<span style="font-family:arial,sans-serif;font-size:13px">[0.0, 5.0e9, 5.0e9],[1.e10, 5.0e9, 5.0e9])</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">data = ray['logden']</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">t = ray['t']</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif">import pylab</font></div><div><font face="arial, sans-serif">pylab.plot(t, data)</font></div><div><font face="arial, sans-serif"><br>

</font></div><div><font face="arial, sans-serif">Of course you'll need to set your own axes labels this way but it should be a lot more flexible.</font></div><div><font face="arial, sans-serif"><br></font></div><div>
<font face="arial, sans-serif">-Nathan</font></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 16, 2013 at 2:38 PM, Noel Scudder <span dir="ltr"><<a href="mailto:noel.scudder@stonybrook.edu" target="_blank">noel.scudder@stonybrook.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi yt-users,<div><br></div><div>I've got another hopefully quick problem I'm looking for help with (thanks for bearing with me with all of my emails!).</div>

<div>I'm trying to create a line plot through 'add_ray' in a PlotCollection. It is created just fine, but I can't seem to set the x and y limits of the plot. Neither pc.set_xlim() nor ray.set_xlim() (along with the y-axis versions) do anything. </div>



<div>Here is my script:</div><div><br></div><div>---------------------</div><div>from yt.mods import *</div><div>pf = load("plt00500")</div><div><br></div><div><div>pc = PlotCollection(pf, 'c')</div><div>



ray = pc.add_ray([0.0, 5.0e9, 5.0e9],[1.e10, 5.0e9, 5.0e9], 'logden')</div></div><div><br></div><div><div>pc.set_ylim(-5.0, 8.0)</div><div>pc.set_xlim(0.2, 0.5)</div></div><div><br></div><div>pc.save('ray')</div>



<div><br></div><div>---------------------</div><div><br></div><div>But my image remains unchanged: <a href="http://i.imgur.com/1jPzHbt.png" target="_blank">http://i.imgur.com/1jPzHbt.png</a></div><div><br></div><div>What am I missing here? Is it not possible to set the limits on such a plot? Thanks in advance for your help.</div>

<span class="HOEnZb"><font color="#888888">

<div><br></div><div>-Noel Scudder</div>
</font></span><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">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>
<br></blockquote></div><br></div>