[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Jan 19 08:36:08 PST 2018
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/dca734d20527/
Changeset: dca734d20527
User: chummels
Date: 2018-01-19 05:58:56+00:00
Summary: Assuring plot annotations are in code_length units prior to plotting.
Affected #: 1 file
diff -r 5d32ce66cd07c8ef6a6506cc13e2f3d02f9335a7 -r dca734d205270bb5fb881c6101814a14618c85f9 yt/visualization/plot_modifications.py
--- a/yt/visualization/plot_modifications.py
+++ b/yt/visualization/plot_modifications.py
@@ -93,6 +93,7 @@
if len(coord) == 3:
if not isinstance(coord, YTArray):
coord = plot.data.ds.arr(coord, 'code_length')
+ coord.convert_to_units('code_length')
ax = plot.data.axis
# if this is an on-axis projection or slice, then
# just grab the appropriate 2 coords for the on-axis view
@@ -167,7 +168,7 @@
Parameters
----------
-
+
plot: a PlotMPL subclass
The plot that we are converting coordinates for
https://bitbucket.org/yt_analysis/yt/commits/54bff1b25e15/
Changeset: 54bff1b25e15
User: ngoldbaum
Date: 2018-01-19 16:35:05+00:00
Summary: Merge pull request #1674 from chummels/sanitize
Ensuring plot annotations are in code_length units prior to plotting.
Affected #: 1 file
diff -r 5d32ce66cd07c8ef6a6506cc13e2f3d02f9335a7 -r 54bff1b25e15abf125abc7f0ba7a00cab44bc273 yt/visualization/plot_modifications.py
--- a/yt/visualization/plot_modifications.py
+++ b/yt/visualization/plot_modifications.py
@@ -93,6 +93,7 @@
if len(coord) == 3:
if not isinstance(coord, YTArray):
coord = plot.data.ds.arr(coord, 'code_length')
+ coord.convert_to_units('code_length')
ax = plot.data.axis
# if this is an on-axis projection or slice, then
# just grab the appropriate 2 coords for the on-axis view
@@ -167,7 +168,7 @@
Parameters
----------
-
+
plot: a PlotMPL subclass
The plot that we are converting coordinates for
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list