[yt-users] Changing the cell range in add_phase_object

Stephanie Tonnesen stonnes at gmail.com
Wed Oct 23 11:39:56 PDT 2013


Excellent, that did it!

Stephanie


On Wed, Oct 23, 2013 at 12:35 PM, Chris Malone <chris.m.malone at gmail.com>wrote:

> I should note that pc.set_zlim should be called *after* you have added
> your phase object to the plot collection.
>
> Chris
>
>
> On Wed, Oct 23, 2013 at 9:33 AM, Chris Malone <chris.m.malone at gmail.com>wrote:
>
>> Hi Stephanie,
>>
>> Will using the set_zlim function of the PlotCollection work for you?
>>
>> pc = PlotCollection(...)
>> pc.set_zlim(1e37,1e42)
>>
>> Note that this should set the colorbar for every plot in the
>> PlotCollection.  If you want to set a specific plot, you'll need to find
>> that plot in the pc.plots list of plots.
>>
>> Chris
>>
>>
>> On Wed, Oct 23, 2013 at 9:23 AM, Stephanie Tonnesen <stonnes at gmail.com>wrote:
>>
>>> Hi everyone,
>>>
>>> So I am making a phase_object, plotting mass as a function of z vs
>>> z_velocity.  Some of my [z,z-velocity] bins have very little mass in them,
>>> and I would like to limit the range of CellMass that is plotted--right now
>>> most of the interesting details are lost in a relatively small range of
>>> CellMass.  Right now my range in the colormap is 1e35 to 1e42, and I want
>>> it to be 1e37 to 1e42, and ignore all bins below 1e37.  Can I do that?
>>>
>>> Thanks,
>>>
>>> Stephanie
>>>
>>> _______________________________________________
>>> 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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20131023/149744da/attachment.html>


More information about the yt-users mailing list