[yt-users] Setting limits on OffAxisProjection plots manually
Setton, David Jonathan - (davidsetton)
davidsetton at email.arizona.edu
Thu Jun 22 16:39:39 PDT 2017
Hi all,
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:
#read in my data with the proper north and normal vectors to get the orientation right
proj = OffAxisProjectionPlot(ds,normal,'density',center=gal_center,north_vector=north)
#this should set the box to be 50 kpc in the x direction and 70 kpc in the y direction
proj.set_width((.5,.7))
#pan the box 15 kpc to the right
proj.pan((0.15,0))
proj.show()
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?
Thanks again for all the help, you guys have been great about getting back to me quickly.
Best,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20170622/6f8dc430/attachment.htm>
More information about the yt-users
mailing list