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

Skip to content

Commit a84bd8a

Browse files
axes->Axes in Figure repr
1 parent d443db1 commit a84bd8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def __str__(self):
274274
return "Figure(%gx%g)" % tuple(self.bbox.size)
275275

276276
def __repr__(self):
277-
return "<{clsname} size {h:g}x{w:g} with {naxes} axes>".format(
277+
return "<{clsname} size {h:g}x{w:g} with {naxes} Axes>".format(
278278
clsname=self.__class__.__name__,
279279
h=self.bbox.size[0], w=self.bbox.size[1],
280280
naxes=len(self.axes),

lib/matplotlib/tests/test_figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,4 +330,4 @@ def test_savefig():
330330

331331
def test_figure_repr():
332332
fig = plt.figure(figsize=(10, 20), dpi=10)
333-
assert repr(fig) == "<Figure size 100x200 with 0 axes>"
333+
assert repr(fig) == "<Figure size 100x200 with 0 Axes>"

0 commit comments

Comments
 (0)