Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 58039d1

Browse files
committed
cleanup commit
1 parent 1a53074 commit 58039d1

File tree

4 files changed

+2
-13
lines changed

4 files changed

+2
-13
lines changed

lib/matplotlib/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,6 +1500,7 @@ def test(verbosity=1):
15001500
finally:
15011501
if old_backend.lower() != 'agg':
15021502
use(old_backend)
1503+
15031504
return success
15041505

15051506
def deprecated_get_set(function, to_use):

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ def figure(self, fig):
517517
self.viewLim = mtransforms.Bbox.unit()
518518
self.transScale = mtransforms.TransformWrapper(
519519
mtransforms.IdentityTransform())
520+
520521
self._set_lim_and_transforms()
521522

522523
def _set_lim_and_transforms(self):

lib/matplotlib/axes/_subplots.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ def __init__(self, fig, *args, **kwargs):
3636
"""
3737

3838
self._figure = fig
39-
# self._figure = None
40-
# self.figure = fig
4139

4240
if len(args) == 1:
4341
if isinstance(args[0], SubplotSpec):
@@ -88,15 +86,6 @@ def not_subplotbase(c):
8886
self.__getstate__()]
8987
return tuple(r)
9088

91-
# @property
92-
# def figure(self):
93-
# """:class:`~matplotlib.figure.Figure` the subplot is set to"""
94-
# return self._figure
95-
96-
# @figure.setter
97-
# def figure(self, fig):
98-
# self._figure = fig
99-
10089
def get_geometry(self):
10190
"""get the subplot geometry, e.g., 2,2,3"""
10291
rows, cols, num1, num2 = self.get_subplotspec().get_geometry()

lib/matplotlib/text.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,7 +1630,6 @@ def set_figure(self, fig):
16301630
def figure(self, fig):
16311631
Text.figure.__set__(self, fig)
16321632

1633-
16341633
docstring.interpd.update(TextWithDash=artist.kwdoc(TextWithDash))
16351634

16361635

@@ -2027,7 +2026,6 @@ def __init__(self, s, xy,
20272026
xy,
20282027
xycoords=xycoords,
20292028
annotation_clip=annotation_clip)
2030-
20312029
# warn about wonky input data
20322030
if (xytext is None and
20332031
textcoords is not None and

0 commit comments

Comments
 (0)