[yt-svn] commit/yt: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Thu Nov 8 10:59:24 PST 2012
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/changeset/0c2ee509685b/
changeset: 0c2ee509685b
branch: yt
user: ngoldbaum
date: 2012-11-08 19:55:57
summary: Fixing the clump callback.
affected #: 1 file
diff -r e936dc471751440fb68c417a6bb97d56dc3fad8e -r 0c2ee509685b9a38923bd4fa968fbe52f462a6c5 yt/visualization/plot_modifications.py
--- a/yt/visualization/plot_modifications.py
+++ b/yt/visualization/plot_modifications.py
@@ -633,6 +633,9 @@
y0, y1 = plot.ylim
xx0, xx1 = plot._axes.get_xlim()
yy0, yy1 = plot._axes.get_ylim()
+
+ extent = [xx0,xx1,yy0,yy1]
+
plot._axes.hold(True)
px_index = x_dict[plot.data.axis]
@@ -662,7 +665,7 @@
(x0, x1, y0, y1), 0).transpose()
buff = np.maximum(temp, buff)
self.rv = plot._axes.contour(buff, len(self.clumps)+1,
- **self.plot_args)
+ extent=extent,**self.plot_args)
plot._axes.hold(False)
class ArrowCallback(PlotCallback):
https://bitbucket.org/yt_analysis/yt/changeset/26ca29ffd1d1/
changeset: 26ca29ffd1d1
branch: yt
user: ngoldbaum
date: 2012-11-08 19:56:28
summary: Merging.
affected #: 1 file
diff -r 369da2bf6c0a8fc4f045f1abebe57382648d6f14 -r 26ca29ffd1d14a695209102bfc422872480e4804 yt/visualization/plot_modifications.py
--- a/yt/visualization/plot_modifications.py
+++ b/yt/visualization/plot_modifications.py
@@ -633,6 +633,9 @@
y0, y1 = plot.ylim
xx0, xx1 = plot._axes.get_xlim()
yy0, yy1 = plot._axes.get_ylim()
+
+ extent = [xx0,xx1,yy0,yy1]
+
plot._axes.hold(True)
px_index = x_dict[plot.data.axis]
@@ -662,7 +665,7 @@
(x0, x1, y0, y1), 0).transpose()
buff = np.maximum(temp, buff)
self.rv = plot._axes.contour(buff, len(self.clumps)+1,
- **self.plot_args)
+ extent=extent,**self.plot_args)
plot._axes.hold(False)
class ArrowCallback(PlotCallback):
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