[yt-svn] commit/yt: 3 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Nov 29 07:29:46 PST 2017
3 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/92feadf3a054/
Changeset: 92feadf3a054
User: ngoldbaum
Date: 2017-11-20 16:33:07+00:00
Summary: ensure plot bounds are in code units for quiver callback
closes #1632
Affected #: 1 file
diff -r a6dac60ab12d8064aad1c5adda6dd54e604c6c98 -r 92feadf3a05438a66542ea5a28635e96a5cd1159 yt/visualization/plot_modifications.py
--- a/yt/visualization/plot_modifications.py
+++ b/yt/visualization/plot_modifications.py
@@ -382,8 +382,8 @@
self.normalize = normalize
def __call__(self, plot):
- x0, x1 = plot.xlim
- y0, y1 = plot.ylim
+ x0, x1 = [p.to('code_length') for p in plot.xlim]
+ y0, y1 = [p.to('code_length') for p in plot.ylim]
xx0, xx1 = plot._axes.get_xlim()
yy0, yy1 = plot._axes.get_ylim()
# See the note about rows/columns in the pixelizer for more information
https://bitbucket.org/yt_analysis/yt/commits/32193ee80324/
Changeset: 32193ee80324
User: ngoldbaum
Date: 2017-11-28 16:59:17+00:00
Summary: fix the cutting quiver callback as well
Affected #: 1 file
diff -r 92feadf3a05438a66542ea5a28635e96a5cd1159 -r 32193ee803247f1e4eb968a46d16282b848534dd yt/visualization/plot_modifications.py
--- a/yt/visualization/plot_modifications.py
+++ b/yt/visualization/plot_modifications.py
@@ -843,8 +843,8 @@
self.normalize = normalize
def __call__(self, plot):
- x0, x1 = plot.xlim
- y0, y1 = plot.ylim
+ x0, x1 = [p.to('code_length') for p in plot.xlim]
+ y0, y1 = [p.to('code_length') for p in plot.ylim]
xx0, xx1 = plot._axes.get_xlim()
yy0, yy1 = plot._axes.get_ylim()
nx = plot.image._A.shape[1] // self.factor
https://bitbucket.org/yt_analysis/yt/commits/ffdd469ac2df/
Changeset: ffdd469ac2df
User: xarthisius
Date: 2017-11-29 15:29:19+00:00
Summary: Merge pull request #1633 from ngoldbaum/quiver-plot-bounds
Ensure plot bounds are in code units for quiver callback
Affected #: 1 file
diff -r 690b9720ab254de48114b3abd1fc91925c6b8872 -r ffdd469ac2df675887bbcca6372a5f7ecd0d1554 yt/visualization/plot_modifications.py
--- a/yt/visualization/plot_modifications.py
+++ b/yt/visualization/plot_modifications.py
@@ -382,8 +382,8 @@
self.normalize = normalize
def __call__(self, plot):
- x0, x1 = plot.xlim
- y0, y1 = plot.ylim
+ x0, x1 = [p.to('code_length') for p in plot.xlim]
+ y0, y1 = [p.to('code_length') for p in plot.ylim]
xx0, xx1 = plot._axes.get_xlim()
yy0, yy1 = plot._axes.get_ylim()
# See the note about rows/columns in the pixelizer for more information
@@ -843,8 +843,8 @@
self.normalize = normalize
def __call__(self, plot):
- x0, x1 = plot.xlim
- y0, y1 = plot.ylim
+ x0, x1 = [p.to('code_length') for p in plot.xlim]
+ y0, y1 = [p.to('code_length') for p in plot.ylim]
xx0, xx1 = plot._axes.get_xlim()
yy0, yy1 = plot._axes.get_ylim()
nx = plot.image._A.shape[1] // self.factor
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