-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
plt.subplots return is inconsistent #8571
Comments
I think the |
There is:
|
Closing as the requested feature already exists. |
Thanks for the quick response! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is not a bug, but a feature that I contend is implemented incorrectly.
When generating multiple subplots using
fig, ax = plt.subplots(nrows, ncols)
the returned 'axes' object(s) depend inconveniently on the number of rows and columns specified. Currently, the axes object is either a single object, a vectorax[i]
or a matrixax[i,j]
. If the number of rows and/or columns is dynamically specified, this leads to convoluted programming to catch the different cases.I believe it would be much more straightforward if it always returned an array of axes objects. If it can not be made the default, can it at least be added as a possibility via a keyword argument?
If this issue has been raised before, I apologise.
The text was updated successfully, but these errors were encountered: