Skip to content

Commit 7506d1a

Browse files
authored
Merge pull request #25909 from vizzy-viz/update-fig-of-pr-25900
#25900 update figure.py
2 parents 2466ccb + d2d9187 commit 7506d1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ def subplots(self, nrows=1, ncols=1, *, sharex=False, sharey=False,
873873
y = np.sin(x**2)
874874
875875
# Create a figure
876-
plt.figure()
876+
fig = plt.figure()
877877
878878
# Create a subplot
879879
ax = fig.subplots()

0 commit comments

Comments
 (0)