Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b5db28

Browse files
committed
Minor fixes to backend_template.
The reference to _draw_if_interactive_template is outdated. show() now needs to be able to take a `block` argument. The backend is still incomplete though; these are just low-hanging fixes.
1 parent 96074c7 commit 2b5db28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/backends/backend_template.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,9 @@ def draw_if_interactive():
176176
For GUI backends - this should be overridden if drawing should be done in
177177
interactive python mode
178178
"""
179-
# May be implemented via the `_draw_if_interactive_template` helper.
180179

181180

182-
def show():
181+
def show(block=None):
183182
"""
184183
For image backends - is not required
185184
For GUI backends - show() is usually the last line of a pylab script and

0 commit comments

Comments
 (0)