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

Commitb2fbae7

Browse files
committed
MNT : remove draw_if_interactive from boilerplate
With the repl callback the pyplot function do not need tocall `draw_if_interactive`.
1 parentf15c871 commitb2fbae7

File tree

2 files changed

+6
-87
lines changed

2 files changed

+6
-87
lines changed

‎boilerplate.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ def %(func)s(%(argspec)s):
5656
%(ax)s.hold(hold)
5757
try:
5858
%(ret)s = %(ax)s.%(func)s(%(call)s)
59-
draw_if_interactive()
6059
finally:
6160
%(ax)s.hold(%(washold)s)
6261
%(mappable)s
@@ -69,7 +68,6 @@ def %(func)s(%(argspec)s):
6968
@docstring.copy_dedent(Axes.%(func)s)
7069
def %(func)s(%(argspec)s):
7170
%(ret)s = gca().%(func)s(%(call)s)
72-
draw_if_interactive()
7371
return %(ret)s
7472
"""
7573

@@ -85,7 +83,6 @@ def {name}():
8583
8684
if im is not None:
8785
im.set_cmap(cm.{name})
88-
draw_if_interactive()
8986
9087
"""
9188

@@ -274,7 +271,7 @@ def format_value(value):
274271

275272
# Since we can't avoid using some function names,
276273
# bail out if they are used as argument names
277-
forreservedin ('gca','gci','draw_if_interactive'):
274+
forreservedin ('gca','gci'):
278275
ifreservedinbad:
279276
msg='Axes method %s has kwarg named %s'% (func,reserved)
280277
raiseValueError(msg)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp