Hi yt folks, I ran into a problem with PhasePlot that's also apparent in the docs. See the last couple of plots here: http://yt-project.org/docs/dev-3.0/analyzing/units/units_and_plotting.html the color bar doesn't re-scale with set_unit changes currently. I couldn't easily reverse engineer what is done to get this right in e.g. slice plot (but, as a work-around, I just defined a new field with the correct units). Also, does PhasePlot have set_x/ylim functionality that I'm not finding? Thanks! Sam
On Wed, May 21, 2014 at 2:26 PM, Sam Leitner
Hi yt folks,
I ran into a problem with PhasePlot that's also apparent in the docs. See the last couple of plots here: http://yt-project.org/docs/dev-3.0/analyzing/units/units_and_plotting.html the color bar doesn't re-scale with set_unit changes currently. I couldn't easily reverse engineer what is done to get this right in e.g. slice plot (but, as a work-around, I just defined a new field with the correct units).
Argh, good point! I will fix this.
Also, does PhasePlot have set_x/ylim functionality that I'm not finding?
Not yet although it wouldn't be hard to add. Right now you need to supply a custom profile object to the PhasePlot constructor.
Thanks! Sam
_______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
On Wed, May 21, 2014 at 2:31 PM, Nathan Goldbaum
On Wed, May 21, 2014 at 2:26 PM, Sam Leitner
wrote: Hi yt folks,
I ran into a problem with PhasePlot that's also apparent in the docs. See the last couple of plots here: http://yt-project.org/docs/dev-3.0/analyzing/units/units_and_plotting.html the color bar doesn't re-scale with set_unit changes currently. I couldn't easily reverse engineer what is done to get this right in e.g. slice plot (but, as a work-around, I just defined a new field with the correct units).
Argh, good point! I will fix this.
PR issued: https://bitbucket.org/yt_analysis/yt/pull-request/917/fixing-set_unit-for-ph...
Also, does PhasePlot have set_x/ylim functionality that I'm not finding?
Not yet although it wouldn't be hard to add. Right now you need to supply a custom profile object to the PhasePlot constructor.
Thanks! Sam
_______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
participants (2)
-
Nathan Goldbaum
-
Sam Leitner