MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_canvas

Method set_canvas

lib/matplotlib/figure.py:3021–3029  ·  view source on GitHub ↗

Set the canvas that contains the figure Parameters ---------- canvas : FigureCanvas

(self, canvas)

Source from the content-addressed store, hash-verified

3019 self.dpi = self._original_dpi
3020
3021 def set_canvas(self, canvas):
3022 """
3023 Set the canvas that contains the figure
3024
3025 Parameters
3026 ----------
3027 canvas : FigureCanvas
3028 """
3029 self.canvas = canvas
3030
3031 @_docstring.interpd
3032 def figimage(self, X, xo=0, yo=0, alpha=None, norm=None, cmap=None,

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected