File tree 1 file changed +4
-10
lines changed
1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -1450,16 +1450,10 @@ 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::
1455
-
1456
- import matplotlib.pyplot as plt
1457
- # plot a line, implicitly creating a subplot(111)
1458
- plt.plot([1, 2, 3])
1459
- # 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
1462
- plt.subplot(211)
1453
+ .. versionchanged:: 3.8
1454
+ In versions prior to 3.8, any preexisting Axes that overlap with the new Axes
1455
+ beyond sharing a boundary was deleted. Deletion does not happen in more
1456
+ recent versions anymore. Use `.Axes.remove` explicitly if needed.
1463
1457
1464
1458
If you do not want this behavior, use the `.Figure.add_subplot` method
1465
1459
or the `.pyplot.axes` function instead.
You can’t perform that action at this time.
0 commit comments