Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2466ccb + d2d9187 commit 7506d1aCopy full SHA for 7506d1a
1 file changed
lib/matplotlib/figure.py
@@ -873,7 +873,7 @@ def subplots(self, nrows=1, ncols=1, *, sharex=False, sharey=False,
873
y = np.sin(x**2)
874
875
# Create a figure
876
- plt.figure()
+ fig = plt.figure()
877
878
# Create a subplot
879
ax = fig.subplots()
0 commit comments