Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf83fbc9

Browse files
committed
Add docstring to _setup_canvas()
1 parent8bd1d57 commitf83fbc9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎lib/matplotlib/figure.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,10 @@ def __init__(self,
331331
self._cachedRenderer=None
332332

333333
def_setup_canvas(self):
334-
# TODO: docstring
335-
importmatplotlib.backendsasmbackends
334+
"""
335+
Return the FigureCanvas instance defined by the currently loaded backend.
336+
"""
337+
importmatplotlib.backendsasmbackends# lazy import
336338
backend_mod=mbackends.pylab_setup()[0]
337339
returnbackend_mod.FigureCanvas(self)
338340

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp