
Hi All, Is there an easy way to extract numpy array with 2d histogram from PhasePlot? Same question for other types of plots. Thanks! - Alexander

Hi Alexander, If you have: pp = PhasePlot(object, "Density", "Temp", "CellMassMsun", weight_field=None) Then: x = pp.profile.x.copy() y = pp.profile.y.copy() z = pp.profile['CellMassMsun'] I think should do it. Elizabeth On Jun 8, 2014, at 10:48 PM, Alexander A. Kaurov <akaurov@gmail.com> wrote:
Hi All,
Is there an easy way to extract numpy array with 2d histogram from PhasePlot? Same question for other types of plots.
Thanks!
- Alexander _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Elizabeth, Thanks a lot! It works! - Alexander On Sun, Jun 8, 2014 at 8:57 AM, Elizabeth Tasker < tasker@astro1.sci.hokudai.ac.jp> wrote:
Hi Alexander,
If you have:
pp = PhasePlot(object, "Density", "Temp", "CellMassMsun", weight_field= None)
Then:
x = pp.profile.x.copy() y = pp.profile.y.copy() z = pp.profile['CellMassMsun']
I think should do it.
Elizabeth
On Jun 8, 2014, at 10:48 PM, Alexander A. Kaurov <akaurov@gmail.com> wrote:
Hi All,
Is there an easy way to extract numpy array with 2d histogram from PhasePlot? Same question for other types of plots.
Thanks!
- Alexander _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Alexander A. Kaurov
-
Elizabeth Tasker