subplot()
: incorrect description of deletion of overlapping axes in the docs
#7393
Labels
Milestone
The docstring for
plt.subplot
states that(which I think is a rather silly behavior but whatever -- seems inherited from MATLAB, in fact).
The actual behavior (which is also MATLAB's behavior) is to delete any axes that overlaps the newly added axes, which can be easily checked from the code
and also by running e.g.
plt.subplot(221); plt.subplot(335)
(the first subplot does get deleted).Making this a doc issue rather than requesting for the behavior to be changed because I don't think either behavior really makes sense anyways :-)
Noticed while investigating #6096 -- this is the mechanism that leads to one of the axes being deleted (note, though, that regardless of this, there still(?) seems to be an issue with incremental tight-layouting in #6096).
The text was updated successfully, but these errors were encountered: