File tree 1 file changed +0
-11
lines changed
1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change 1
1
"""Helpers to create new Figures."""
2
2
3
- from matplotlib import is_interactive
4
-
5
3
from ._figure import Figure
6
- from ._promotion import promote_figure
7
4
8
5
9
6
def figure (
@@ -15,8 +12,6 @@ def figure(
15
12
edgecolor = None , # defaults to rc figure.edgecolor
16
13
frameon = True ,
17
14
FigureClass = Figure ,
18
- clear = False ,
19
- auto_draw = True ,
20
15
** kwargs ,
21
16
):
22
17
"""
@@ -75,8 +70,6 @@ def figure(
75
70
frameon = frameon ,
76
71
** kwargs ,
77
72
)
78
- if is_interactive ():
79
- promote_figure (fig , auto_draw = auto_draw )
80
73
return fig
81
74
82
75
@@ -216,10 +209,6 @@ def subplots(
216
209
# Note that this is the same as
217
210
plt.subplots(2, 2, sharex=True, sharey=True)
218
211
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
-
223
212
"""
224
213
fig = figure (** fig_kw )
225
214
axs = fig .subplots (
You can’t perform that action at this time.
0 commit comments