Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Description
I don't know if this is a bug in Jupyter/IPython or in Matplotlib ...
Bug report
Bug summary
When creating 3D plots (usingAxes3D
) with the "inline" backend (which is the default) in a Jupyter notebook, the argumentfigsize
doesn't seem to work as intended. It looks like the width is ignored when calculating the figure size (but it doesn't seem to be ignored when calculating the size of the "axes" object?).
Actual outcome
First, when usingfig.gca(projection='3d')
, which is used in the official Matplotlib examples:
The same thing happens when usingfig.add_subplot(projection='3d')
:
Interestingly, a slightly different thing happens when usingfig.add_axes([0, 0, 1, 1], projection='3d')
andAxes3D(fig)
(which is discouraged?):
Expected outcome
When using a "normal" 2DAxes
, it looks as expected:
The output fromfig.add_axes([0, 0, 1, 1])
is also different in this case:
Matplotlib version
- Operating system: Debian Linux
- Matplotlib version:
master
- Matplotlib backend (
print(matplotlib.get_backend())
):module://ipykernel.pylab.backend_inline
- Python version: 3.7.6
- Jupyter version (if applicable): JupyterLab
master