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

Skip to content

Commit ee977da

Browse files
committed
working on tkagg print
svn path=/trunk/matplotlib/; revision=2552
1 parent 9345b6d commit ee977da

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/matplotlib/backends/backend_tkagg.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,13 @@ def get_tk_widget(self):
178178
"""
179179
return self._tkcanvas
180180

181-
def _print_figure(self, filename, dpi=150, facecolor='w', edgecolor='w',
181+
def print_figure(self, filename, dpi=150, facecolor='w', edgecolor='w',
182182
orientation='portrait', **kwargs):
183183

184-
agg = self.switch_backends(FigureCanvasAgg)
185-
agg.print_figure(filename, dpi, facecolor, edgecolor, orientation,
184+
185+
FigureCanvasAgg.print_figure(self, filename, dpi, facecolor, edgecolor, orientation,
186186
**kwargs)
187-
self.figure.set_canvas(self)
187+
self.draw_idle()
188188

189189
def motion_notify_event(self, event):
190190
x = event.x

0 commit comments

Comments
 (0)