[yt-users] save phase plot data

Matthew Turk matthewturk at gmail.com
Fri Jul 4 04:52:20 PDT 2014


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
>



More information about the yt-users mailing list