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

Skip to content

Commit b727276

Browse files
committed
fixed tkagg switch bug
svn path=/trunk/matplotlib/; revision=3270
1 parent 6d4dd00 commit b727276

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/matplotlib/backends/backend_tkagg.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ def print_figure(self, filename, dpi=None, facecolor='w', edgecolor='w',
183183

184184
if dpi is None: dpi = rcParams['savefig.dpi']
185185
agg = self.switch_backends(FigureCanvasAgg)
186-
try: agg.print_figure(filename, dpi, facecolor, edgecolor, orientation,
187-
**kwargs)
186+
try:
187+
agg.print_figure(filename, dpi, facecolor, edgecolor, orientation,
188+
**kwargs)
188189
except:
189190
self.figure.set_canvas(self)
190191
raise

0 commit comments

Comments
 (0)