Skip to content

Commit 7f18073

Browse files
committed
API: make _creation.figure function naive to interactive mode
1 parent d165e7e commit 7f18073

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Diff for: mpl_gui/_creation.py

-11
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
"""Helpers to create new Figures."""
22

3-
from matplotlib import is_interactive
4-
53
from ._figure import Figure
6-
from ._promotion import promote_figure
74

85

96
def figure(
@@ -15,8 +12,6 @@ def figure(
1512
edgecolor=None, # defaults to rc figure.edgecolor
1613
frameon=True,
1714
FigureClass=Figure,
18-
clear=False,
19-
auto_draw=True,
2015
**kwargs,
2116
):
2217
"""
@@ -75,8 +70,6 @@ def figure(
7570
frameon=frameon,
7671
**kwargs,
7772
)
78-
if is_interactive():
79-
promote_figure(fig, auto_draw=auto_draw)
8073
return fig
8174

8275

@@ -216,10 +209,6 @@ def subplots(
216209
# Note that this is the same as
217210
plt.subplots(2, 2, sharex=True, sharey=True)
218211
219-
# Create figure number 10 with a single subplot
220-
# and clears it if it already exists.
221-
fig, ax = plt.subplots(num=10, clear=True)
222-
223212
"""
224213
fig = figure(**fig_kw)
225214
axs = fig.subplots(

0 commit comments

Comments
 (0)