[yt-svn] commit/yt: MatthewTurk: Disable recreating the FRB for OffAxisProjectionPlots if it already exists.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Nov 26 09:49:13 PST 2013
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/4801ac940c84/
Changeset: 4801ac940c84
Branch: yt
User: MatthewTurk
Date: 2013-11-26 15:56:59
Summary: Disable recreating the FRB for OffAxisProjectionPlots if it already exists.
This prevents functions like set_center, which have no effect, from silently
not doing anything.
Affected #: 1 file
diff -r cf9629f33e7236f210eaae66050aed5759e69dc5 -r 4801ac940c84f1855b705baad29359de76853fd2 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -1195,6 +1195,11 @@
oblique=True, fontsize=fontsize)
self.set_axes_unit(axes_unit)
+ def _recreate_frb(self):
+ if self._frb is not None:
+ raise NotImplementedError
+ super(OffAxisProjectionPlot, self)._recreate_frb()
+
_metadata_template = """
%(pf)s<br><br>
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