[yt-users] PhasePlot losing negative values

Alex Hill ashill at haverford.edu
Thu Dec 17 12:55:15 PST 2015


Hi,

I’m trying to create a PhasePlot of one component of velocity (which can be negative) as a function of temperature.

f = yt.PhasePlot(box, ‘temperature’, ‘velocity_z’,[‘cell_mass’], weight_field=None,fractional=True)
f.set_log(‘velocity_z’, False)
f.show()

This works as expected for cells with positive velocity. However, cells with negative velocities get completely dropped; everything with velocity_z <= 0 is blank.

I assume that PhasePlot took the logarithm of velocity_z at some point in producing the plot and lost negative data. Is there an option I’m missing to tell PhasePlot not to do this?

Running yt 3.2.2 and python 2.7 on a Mac.

Cheers,
 Alex

---------
Alex Hill
Senior Postdoctoral Research Associate
Office: KINSC Link L106
Department of Astronomy, Haverford College
370 Lancaster Ave, Haverford, PA 19041 USA
phone: +1 484 297 2136
email/iMessage: ashill at haverford.edu




More information about the yt-users mailing list