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

Commitb9e94e4

Browse files
committed
Fix signature of disabled draw methods
1 parentcbd7523 commitb9e94e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,8 @@ def _draw_disabled(self):
668668
cost of the draw_XYZ calls on the canvas.
669669
"""
670670
no_ops= {
671-
meth_name:lambda*args,**kwargs:None
671+
meth_name:functools.update_wrapper(lambda*args,**kwargs:None,
672+
getattr(RendererBase,meth_name))
672673
formeth_nameindir(RendererBase)
673674
if (meth_name.startswith("draw_")
674675
ormeth_namein ["open_group","close_group"])

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp