[yt-users] phaseplot set zlim

Stephanie Tonnesen stonnes at gmail.com
Mon Mar 27 23:29:50 PDT 2017


Hi Nathan and yt-users,

So I used the cut_region to only select cells with cell_mass > 1e36, and
got a surprising plot (I think).  I am attaching both 2d profiles here for
comparison.  I am not surprised that there are unfilled regions of the
figure--those may have been filled with cells that had less than 1e36 g,
although the positions are a bit strange.  What I find really surprising is
that so much more of the figure that has the mass cut is yellow--shoudn't
there be equal or less mass than when I am not making a cut?

Thanks,
Stephanie


--
Dr. Stephanie Tonnesen
Alvin E. Nashman Postdoctoral Fellow
Carnegie Observatories, Pasadena, CA
stonnes at gmail.com

On Sun, Mar 26, 2017 at 6:38 PM, Stephanie Tonnesen <stonnes at gmail.com>
wrote:

> Hi Nathan,
>
> Thanks!  I was hoping there was a way to do this within the plotting
> commands, but that will definitely work.
>
> Stephanie
>
> On Sun, Mar 26, 2017 at 4:21 PM Nathan Goldbaum <nathan12343 at gmail.com>
> wrote:
>
>> Hi Stephanie,
>>
>> One way to do this would be to create the PhasePlot using a cut_region
>> data object. If you're already using another data object to construct your
>> phase plot, the cut_region could be passed to the other data object via the
>> data_source keyword argument.
>>
>> Nathan
>>
>> On Sun, Mar 26, 2017 at 4:24 PM Stephanie Tonnesen <stonnes at gmail.com>
>> wrote:
>>
>> Hi yt-users,
>>
>> I am trying to make some nice looking phaseplots, and want to set the
>> mass range that I show in the figure.  I use set_zlim and instead of only
>> showing the cells that call into that mass range, it just changes the color
>> coding.  You can see the attached for what I am talking about.  Is there a
>> way to have phaseplot only show me the cells that have "cell_mass" larger
>> that 1e36 (or whatever I happen to set)?
>>
>> Thanks!
>>
>> Stephanie
>>
>> --
>> Dr. Stephanie Tonnesen
>> Alvin E. Nashman Postdoctoral Fellow
>> Carnegie Observatories, Pasadena, CA
>> stonnes at gmail.com
>>
>> _______________________________________________
>> 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
>>
> --
> --
> Dr. Stephanie Tonnesen
> Alvin E. Nashman Postdoctoral Fellow
> Carnegie Observatories, Pasadena, CA
> stonnes at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20170327/593f2b96/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BPr16vs30arccw0001_10kpc_mcut_2d-Profile_density_temperature_cell_mass.png
Type: image/png
Size: 49237 bytes
Desc: not available
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20170327/593f2b96/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BPr16vs30arccw0001_10kpc_2d-Profile_density_temperature_cell_mass.png
Type: image/png
Size: 50775 bytes
Desc: not available
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20170327/593f2b96/attachment-0005.png>


More information about the yt-users mailing list