[yt-users] display of 2D cylindrical slice

Suoqing Ji suoqing at physics.ucsb.edu
Tue Aug 11 13:40:29 PDT 2015


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/a0e9ba7aa5d29687c7094a0762fedd11e82d3fb4/yt/visualization/plot_window.py?at=yt#plot_window.py-2030

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 at 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 at cfa.harvard.edu <mailto:jslavin at 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 at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150811/8a5bc7d6/attachment.htm>


More information about the yt-users mailing list