Skip to content

Commit d165e7e

Browse files
committed
API make passing num required from promote_figure
1 parent 917a800 commit d165e7e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mpl_gui/_promotion.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ def _auto_draw_if_interactive(fig, val):
3737
fig.canvas.draw_idle()
3838

3939

40-
def promote_figure(fig, *, auto_draw=True, num=None):
40+
def promote_figure(fig, *, auto_draw=True, num):
4141
"""Create a new figure manager instance."""
4242
_backend_mod = current_backend_module()
43-
4443
if (
4544
getattr(_backend_mod.FigureCanvas, "required_interactive_framework", None)
4645
and threading.current_thread() is not threading.main_thread()
@@ -74,7 +73,6 @@ def promote_figure(fig, *, auto_draw=True, num=None):
7473
# HACK: the callback in backend_bases uses GCF.destroy which misses these
7574
# figures by design!
7675
def _destroy(event):
77-
7876
if event.key in mpl.rcParams["keymap.quit"]:
7977
# grab the manager off the event
8078
mgr = event.canvas.manager

0 commit comments

Comments
 (0)