[yt-users] phase plot

Nathan Goldbaum nathan12343 at gmail.com
Mon Feb 3 16:55:25 PST 2014


Yup, I'd urge you to upgrade to 2.6.1.

On Mon, Feb 3, 2014 at 4:48 PM, Yi Feng <yfen12 at ucsc.edu> wrote:
> Hi, Nathan
> Thanks.
> 2.5-dev
>
> So I need to use the latest version?
>
>
> On Tue, Feb 4, 2014 at 8:36 AM, Nathan Goldbaum <nathan12343 at gmail.com>
> wrote:
>>
>> Hi Yi,
>>
>> Which yt version are you using?  PhasePlot was added relatively
>> recently and is only available in yt 2.6 or newer.
>>
>> You can see the yt version by doing:
>>
>> >>> import yt
>> >>> print yt.__version__
>>
>> you can also do:
>>
>> $ yt instinfo
>>
>> at the command line, although the latter will only give you a
>> mercurial changeset hash unless you have a relatively recent yt
>> install.
>>
>> -Nathan
>>
>> On Mon, Feb 3, 2014 at 4:28 PM, Yi Feng <yfen12 at ucsc.edu> wrote:
>> > Hi,
>> > I am using the following to get a phase plot:
>> > from yt.mods import *
>> > pf1 = load("data.0070.3d.hdf5")
>> > my_sphere = pf1.h.sphere("c", (10.0, "pc"))
>> > plot = PhasePlot(my_sphere, "tracerdensity", "tracerratio",
>> > "CellMassMsun",
>> >                  weight_field=None)
>> > plot.save("phase.png")
>> >
>> > But it says:
>> > NameError: name 'PhasePlot' is not defined
>> >
>> > What is wrong?
>> > Thanks!
>> >
>> > --
>> > Sincerely
>> > Yi Feng
>> > Department of Astronomy&Astrophysics,UC Santa Cruz
>> >
>> > _______________________________________________
>> > yt-users mailing list
>> > yt-users at lists.spacepope.org
>> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>> >
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
>
>
> --
> Sincerely
> Yi Feng
> Department of Astronomy&Astrophysics,UC Santa Cruz
>
> _______________________________________________
> 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