Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d443db1 commit a84bd8aCopy full SHA for a84bd8a
lib/matplotlib/figure.py
@@ -274,7 +274,7 @@ def __str__(self):
274
return "Figure(%gx%g)" % tuple(self.bbox.size)
275
276
def __repr__(self):
277
- return "<{clsname} size {h:g}x{w:g} with {naxes} axes>".format(
+ return "<{clsname} size {h:g}x{w:g} with {naxes} Axes>".format(
278
clsname=self.__class__.__name__,
279
h=self.bbox.size[0], w=self.bbox.size[1],
280
naxes=len(self.axes),
lib/matplotlib/tests/test_figure.py
@@ -330,4 +330,4 @@ def test_savefig():
330
331
def test_figure_repr():
332
fig = plt.figure(figsize=(10, 20), dpi=10)
333
- assert repr(fig) == "<Figure size 100x200 with 0 axes>"
+ assert repr(fig) == "<Figure size 100x200 with 0 Axes>"
0 commit comments