[yt-users] Plotting 1D data

Hao Wang hwang.phy at gmail.com
Tue Aug 19 01:39:42 PDT 2014


Hi all,

I'm trying to plot the density profile of a 1D simulation, but can't find
any instruction on how to do this.

I tried ray=pf.h.ortho_ray(0,[ord1,ord2]) with several different ord1 and
ord2, including [0.5, 0.5]; while "ray['x']" returns an array of values,
"ray[FieldName]" (where FieldName can be Density, TotalEnergy, GasEnergy,
etc) returns nothing but "YTArray([],dtype=float 64) (dimensionless)".

Using ortho_ray on the 2D simulation of the same problem gives correct
answer. Also, the "all_data" and "sphere" object do not work for 1D (they
work for 2D, too).

Thanks,

Hao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140819/5ffe71df/attachment.htm>


More information about the yt-users mailing list