[yt-users] display of 2D cylindrical slice

Matthew Turk matthewturk at gmail.com
Tue Aug 11 13:39:41 PDT 2015


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 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       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
>



More information about the yt-users mailing list