Hi, As I mentioned in an earlier message, I'm doing FLASH simulations in 2D cylindrical symmetry (r-z). When I use SlicePlot in an ipython notebook, the correct labels for the axes are used but they are incorrectly centered about 0 - when both r and z should start at 0 and go to 36 pc. It's especially odd in that the INFO message printed indicates the correct limits. I suppose I should report that as a bug, but I also wondered about how to change the plotting limits. It seems that the yt.SlicePlot object does not have a set_xlim or set_ylim method. Does anyone know how to do that? Jon -- ________________________________________________________ Jonathan D. Slavin Harvard-Smithsonian CfA jslavin@cfa.harvard.edu 60 Garden Street, MS 83 phone: (617) 496-7981 Cambridge, MA 02138-1516 cell: (781) 363-0035 USA ________________________________________________________
Hi Jon, I think you are looking for a plot like this? http://i.imgur.com/Frt7XdJ.png I created this by specifying origin="native" in the constructor for SlicePlot: s = yt.SlicePlot(ds, "theta", "density", origin="native") Let me know if that is what you're looking for! On Tue, Aug 11, 2015 at 3:25 PM, Slavin, Jonathan <jslavin@cfa.harvard.edu> wrote:
Hi,
As I mentioned in an earlier message, I'm doing FLASH simulations in 2D cylindrical symmetry (r-z). When I use SlicePlot in an ipython notebook, the correct labels for the axes are used but they are incorrectly centered about 0 - when both r and z should start at 0 and go to 36 pc. It's especially odd in that the INFO message printed indicates the correct limits. I suppose I should report that as a bug, but I also wondered about how to change the plotting limits. It seems that the yt.SlicePlot object does not have a set_xlim or set_ylim method. Does anyone know how to do that?
Jon
-- ________________________________________________________ Jonathan D. Slavin Harvard-Smithsonian CfA jslavin@cfa.harvard.edu 60 Garden Street, MS 83 phone: (617) 496-7981 Cambridge, MA 02138-1516 cell: (781) 363-0035 USA ________________________________________________________
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hi Jon, You could add the argument origin=“native" in SlicePlot. You can see the detailed info here: https://bitbucket.org/yt_analysis/yt/src/a0e9ba7aa5d29687c7094a0762fedd11e82... Best wishes, -- Suoqing JI Ph.D Candidate Department of Physics University of California, Santa Barbara http://web.physics.ucsb.edu/~suoqing
On Aug 11, 2015, at 1:25 PM, Slavin, Jonathan <jslavin@cfa.harvard.edu> wrote:
Hi,
As I mentioned in an earlier message, I'm doing FLASH simulations in 2D cylindrical symmetry (r-z). When I use SlicePlot in an ipython notebook, the correct labels for the axes are used but they are incorrectly centered about 0 - when both r and z should start at 0 and go to 36 pc. It's especially odd in that the INFO message printed indicates the correct limits. I suppose I should report that as a bug, but I also wondered about how to change the plotting limits. It seems that the yt.SlicePlot object does not have a set_xlim or set_ylim method. Does anyone know how to do that?
Jon
-- ________________________________________________________ Jonathan D. Slavin Harvard-Smithsonian CfA jslavin@cfa.harvard.edu <mailto:jslavin@cfa.harvard.edu> 60 Garden Street, MS 83 phone: (617) 496-7981 Cambridge, MA 02138-1516 cell: (781) 363-0035 USA ________________________________________________________
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (3)
-
Matthew Turk
-
Slavin, Jonathan
-
Suoqing Ji