<div dir="auto">Hi! This is a bit of a breakdown in the difference between off axis projections and other types of plots. In general you can't pan them, if I remember correctly, because it's a wrapper around a more expensive operation (a type of volume rendering.) You may need to recreate it to move the field of view.<div dir="auto"><br></div><div dir="auto">Matt</div><div dir="auto"><br></div><div dir="auto">PS don't worry about emailing the list - it's what it's here for! Glad things are working out.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Jun 23, 2017 6:53 AM, "Setton, David Jonathan - (davidsetton)" <<a href="mailto:davidsetton@email.arizona.edu">davidsetton@email.arizona.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi all,</p>
<p><br>
</p>
<p>I apologize for bombarding the mailing list this past bit, but hopefully this should be the last question that I have. I'm trying to set aysmmetric units on a projection plot (i.e. xlim=[-10,40] and ylim=[-35,35] in kpc. However, there is not a set_xlim
 or set_ylim option for off axis projection plots. The idea that I had was to use the pan function. Since my box is 100 kpc in each direction, in code units, I attempted to set the width of my box:</p>
<p><br>
</p>
<p>#read in my data with the proper north and normal vectors to get the orientation right<br>
</p>
<p>proj = OffAxisProjectionPlot(ds,<wbr>normal,'density',center=gal_<wbr>center,north_vector=north)
</p>
<p><br>
</p>
<p>#this should set the box to be 50 kpc in the x direction and 70 kpc in the y direction</p>
<p>proj.set_width((.5,.7))</p>
<p><br>
</p>
<p>#pan the box 15 kpc to the right<br>
</p>
<p>proj.pan((0.15,0))</p>
<p><br>
</p>
<p>proj.show()</p>
<p><br>
</p>
<p>However, when I show the plot, the pan() function has not shifted it at all. Is there a way to manually set the limits to what I need to, or to properly use the pan function?</p>
<p><br>
</p>
<p>Thanks again for all the help, you guys have been great about getting back to me quickly.</p>
<p><br>
</p>
<p>Best,</p>
<p><br>
</p>
<p>David<br>
</p>
</div>

<br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
<br></blockquote></div></div>