-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
plt.subplot eats my subplots #11435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am currently looking at and editing those docstrings and that behavior is correct according to the docstrings and code. I don't know why it is a difference in behavior. |
So you think this is desired? That feels a lot as if suddenly |
I don't understand why the feature exist but it is well documented https://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.subplot.html#matplotlib.pyplot.subplot |
I see. My bad. I guess this can be closed, although I think this pretty annoying and should probably be changed at some point. |
Matlab does this... |
We can't blame everything on MATLAB, see #7377 (comment) and surrounding discussion (I haven't tried for subplot though). |
Again, I wouldn't use |
Bug report
Bug summary
plt.subplot
eats my subplots. But it doesn't completely digest them, since they are still there, just not shown.Creating a subplot grid with
plt.subplots
and in addition adding aplt.subplot
removes those subplots from the grid, which are under the newly created subplot.Creating the additional subplot via
fig.add_subplot
does not remove them.Code for reproduction
Actual outcome
Expected outcome
The expected outcome would be the same as with
fig.add_subplot
:Matplotlib version
The text was updated successfully, but these errors were encountered: