Annotations in PhasePlot.
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
It's not possible to do this with PhasePlot alone right now. It sounds like a nice feature to add, though. If you're interested in doing so, I don't think it would be terribly hard. If not, please feel free to open an issue on GitHub for the feature request. That said, It is possible right now to combine a Profile2D and a Profile1D to make the visualization you're looking for. Here's an example: https://gist.github.com/anonymous/e1ddfba0d5632c4f0683fbd3c70fc404 On Fri, Sep 15, 2017 at 5:16 PM, Manuel Zamora <mzamora06@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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
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@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@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@haverford.edu
participants (3)
-
Alex Hill
-
Manuel Zamora
-
Nathan Goldbaum