[yt-users] switch axes
Nathan Goldbaum
nathan12343 at gmail.com
Mon Apr 11 14:55:46 PDT 2016
Hi Chang-Goo,
Take a look at this example notebook:
https://gist.github.com/cc879dbab87d21bd233b979774d5ebf0
You need to edit ds.coordinates.x_axis and ds.coordinates.y_axis. These two
dictionaries are used by yt's plotting system to determine which coordinate
is supposed to be along the x axis and which coordinate is supposed to be
along the y axis for yt plots.
The default is what it is (which admittedly doesn't look great for a disk
simulation where the vertical direction aligns with the z axis) so that yt
plots always use a right-handed coordinate system.
-Nathan
On Mon, Apr 11, 2016 at 4:24 PM, Chang-Goo Kim <changgoo at princeton.edu>
wrote:
> Hi,
>
> Does anyone have a quick trick to transpose axes from SlicePlot? It seems
> not make sense to draw z-x slice, especially when I have an elongated box
> toward z.
>
> Thanks,
>
> Chang-Goo
>
> _______________________________________________
> 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/20160411/dfc33b3e/attachment.htm>
More information about the yt-users
mailing list