[yt-users] save phase plot data
Kacper Kowalik
xarthisius.kk at gmail.com
Fri Jul 4 06:30:08 PDT 2014
On 07/04/2014 02:20 PM, Maike Schmidt wrote:
> Hi Matt,
> can you give me more details or a link to an example where something similar is
> done? The only object I have is a PlotCollection. How do I access the data from
> the phase plot I added to the plot collection? I cannot find the attribute data
> or field_data in the plot collection.
> Thanks,
> Maike
Hi Maike,
please look at the following example:
http://paste.yt-project.org/show/4887/
I've slightly modified a script that I'm using for making 2D histograms.
It's using a method from a bit lower level of API: BinnedProfile2D,
which is also used internally by PhasePlot.
Cheers,
Kacper
> *Gesendet:* Freitag, 04. Juli 2014 um 13:52 Uhr
> *Von:* "Matthew Turk" <matthewturk at gmail.com>
> *An:* "Discussion of the yt analysis package" <yt-users at lists.spacepope.org>
> *Betreff:* Re: [yt-users] save phase plot data
> Hi Maike,
>
> On Fri, Jul 4, 2014 at 6:49 AM, Maike Schmidt <maikeschmidt2 at gmx.de> wrote:
> > Hi Britton,
> >
> > in my specific example, the third variable computed as function of the other
> > two (CellMass as function of Temperature and Density in the example on the
> > page you linked to) varies over so many orders of magnitude that it
> > physically makes so sense to show the full range. I had hoped that I could
> > somehow get a 2d array corresponding to the data shown in the plot and
> > remove all points below a certain threshold.
> >
>
> You can do this. If you have created a phase plot, the data will
> reside either in the attribute .data (I think -- not sure about how
> the old method stores it) or .field_data, depending on how you have
> created it. This attribute will be a dictionary of arrays.
>
> -Matt
>
> > Maike
> >
> >
> > Gesendet: Freitag, 04. Juli 2014 um 13:35 Uhr
> > Von: "Britton Smith" <brittonsmith at gmail.com>
> > An: "Discussion of the yt analysis package" <yt-users at lists.spacepope.org>
> > Betreff: Re: [yt-users] save phase plot data
> > Hi Maike,
> >
> >
> > I recommend giving the newer PhasePlot command a try. You will have to
> > first create the sphere data container manually and then give it to
> > PhasePlot, but it will make a good looking image for you. Have a look here
> > for more information:
> > http://yt-project.org/doc/visualizing/plots.html#d-phase-plots
> >
> >
> > Britton
> >
> > On Fri, Jul 4, 2014 at 12:15 PM, Maike Schmidt <maikeschmidt2 at gmx.de> wrote:
> >>
> >> Hi all,
> >>
> >>
> >> I create phase plots with the add_phase_sphere command. I have been unable
> >> to figure out how to save the data from the phase plot to a file to use
> >> another program to plot the data. Any help is appreciated.
> >>
> >>
> >> Thanks,
> >> Maike
> >>
> >>
> >>
> >> _______________________________________________
> >> 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
> >
> > _______________________________________________
> > 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
>
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140704/1f60a7d6/attachment.sig>
More information about the yt-users
mailing list