File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1450,15 +1450,13 @@ def subplot(*args, **kwargs) -> Axes:
1450
1450
1451
1451
Notes
1452
1452
-----
1453
- Creating a new Axes will delete any preexisting Axes that
1454
- overlaps with it beyond sharing a boundary::
1453
+ Creating a new Axes will not delete any preexisting Axes, even if they overlap::
1455
1454
1456
1455
import matplotlib.pyplot as plt
1457
1456
# plot a line, implicitly creating a subplot(111)
1458
1457
plt.plot([1, 2, 3])
1459
1458
# now create a subplot which represents the top plot of a grid
1460
- # with 2 rows and 1 column. Since this subplot will overlap the
1461
- # first, the plot (and its Axes) previously created, will be removed
1459
+ # with 2 rows and 1 column. The existing plot (and its Axes) will remain
1462
1460
plt.subplot(211)
1463
1461
1464
1462
If you do not want this behavior, use the `.Figure.add_subplot` method
You can’t perform that action at this time.
0 commit comments