File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments