Skip to content

Commit c8d2af0

Browse files
committed
FIX added \n in an error message
1 parent 4240bbf commit c8d2af0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/matplotlib/figure.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ def show(self, warn=True):
349349
try:
350350
manager = getattr(self.canvas, 'manager')
351351
except AttributeError as err:
352-
raise AttributeError("%s Figure.show works only "
352+
raise AttributeError("%s\n"
353+
"Figure.show works only "
353354
"for figures managed by pyplot, normally "
354355
"created by pyplot.figure()." % err)
355356

@@ -979,8 +980,8 @@ def draw(self, renderer):
979980
if self.suppressComposite is not None:
980981
not_composite = self.suppressComposite
981982

982-
if len(self.images) <= 1 or not_composite or \
983-
not cbook.allequal([im.origin for im in self.images]):
983+
if (len(self.images) <= 1 or not_composite or
984+
not cbook.allequal([im.origin for im in self.images])):
984985
for a in self.images:
985986
dsu.append((a.get_zorder(), a, a.draw, [renderer]))
986987
else:

0 commit comments

Comments
 (0)