|
|
@@ -332,12 +332,9 @@ def __init__(self, |
|
|
|
|
|
self.transFigure = BboxTransformTo(self.bbox)
|
|
|
|
|
|
- # the figurePatch name is deprecated
|
|
|
- self.patch = self.figurePatch = Rectangle(
|
|
|
+ self.patch = Rectangle(
|
|
|
xy=(0, 0), width=1, height=1,
|
|
|
- facecolor=facecolor, edgecolor=edgecolor,
|
|
|
- linewidth=linewidth)
|
|
|
-
|
|
|
+ facecolor=facecolor, edgecolor=edgecolor, linewidth=linewidth)
|
|
|
self._set_artist_props(self.patch)
|
|
|
self.patch.set_aa(False)
|
|
|
|
|
|
@@ -358,6 +355,10 @@ def __init__(self, |
|
|
self.clf()
|
|
|
self._cachedRenderer = None
|
|
|
|
|
|
+ @cbook.deprecated("2.1", alternative="Figure.patch")
|
|
|
+ def figurePatch(self):
|
|
|
+ return self.patch
|
|
|
+
|
|
|
# TODO: I'd like to dynamically add the _repr_html_ method
|
|
|
# to the figure in the right context, but then IPython doesn't
|
|
|
# use it, for some reason.
|
|
|
|