You are reading an old version of the documentation (v3.0.2). For the latest version see https://matplotlib.org/stable/_modules/matplotlib/backends/backend_tkagg.html
Version 3.0.2
matplotlib
Fork me on GitHub

Source code for matplotlib.backends.backend_tkagg

from . import _backend_tk
from .backend_agg import FigureCanvasAgg
from ._backend_tk import (
    _BackendTk, FigureCanvasTk, FigureManagerTk, NavigationToolbar2Tk)


[docs]class FigureCanvasTkAgg(FigureCanvasAgg, FigureCanvasTk):
[docs] def draw(self): super(FigureCanvasTkAgg, self).draw() _backend_tk.blit(self._tkphoto, self.renderer._renderer, (0, 1, 2, 3)) self._master.update_idletasks()
[docs] def blit(self, bbox=None): _backend_tk.blit( self._tkphoto, self.renderer._renderer, (0, 1, 2, 3), bbox=bbox) self._master.update_idletasks()
@_BackendTk.export class _BackendTkAgg(_BackendTk): FigureCanvas = FigureCanvasTkAgg