[yt-users] Annotations in PhasePlot.

Alex Hill ashill at haverford.edu
Mon Sep 18 10:34:12 PDT 2017


Hi Manuel,

I do this routinely. Have to use matplotlib to plot the equilibrium curve, though.

Once you’ve created the box you want the phase plot of and the arrays dens and pres which represent the equilibrium curve:

f = yt.PhasePlot(box,’dens', ‘pres’, [‘cell_volume'],weight_field=None, fractional=True)
ax = f['cell_volume'].axes
ax.plot(dens, pres,'k-‘)
f.show()

Cheers, 
 Alex


> On Sep 15, 2017, at 18:16, Manuel Zamora <mzamora06 at gmail.com> wrote:
> 
> Dear yt users,
> 
> I'm generating some 2D plots (pressure vs density) using the yt.PhasePlot procedure and I want to overplot the "equilibrium curve". Is this possible? Can you please give me some hints?
> 
> Many thanks in advance!
> _
> Manuel
> 
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org



---------
Alex Hill
Senior Postdoctoral Research Associate
Office: Observatory C
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