legend floats when position set via bbox_to_anchor
See original GitHub issueDescribe the issue
First noticed this on pan and zoom, but even on basic resize the legend moves all over the place when I set the location using
bbox_to_anchor=(1.45,1)
Here you can see the repositioning:
https://user-images.githubusercontent.com/1300499/121652954-30dbfe00-ca6a-11eb-98c3-35fc6c3a5063.mp4
where in the static version, the legend is firmly to the side:
Versions
I took the screencast with mpl 3.3.4, but am also observing it with 3.4.2
3.8.10 (default, May 19 2021, 13:12:57) [MSC v.1916 64 bit (AMD64)]
ipympl version: 0.7.0
jupyter core : 4.7.1
jupyter-notebook : 6.4.0
qtconsole : 5.0.3
ipython : 7.22.0
ipykernel : 5.5.5
jupyter client : 6.1.12
jupyter lab : 3.0.16
nbconvert : 6.0.7
ipywidgets : 7.6.3
nbformat : 5.1.3
traitlets : 5.0.5
Config option kernel_spec_manager_class
not recognized by ListNBExtensionsApp
.
Known nbextensions:
config dir: C:\Users\story.jupyter\nbconfig
notebook section
jupyter-js-widgets/extension enabled
- Validating: ok
config dir: C:\Users\story\Anaconda3\envs\prop\etc\jupyter\nbconfig
notebook section
jupyter-matplotlib/extension enabled
- Validating: ok
jupyter-js-widgets/extension enabled
- Validating: ok
Config option kernel_spec_manager_class
not recognized by ListLabExtensionsApp
.
[W 2021-06-11 04:11:00.742 LabApp] Config option kernel_spec_manager_class
not recognized by LabApp
.
JupyterLab v3.0.16
C:\Users\story\Anaconda3\envs\prop\share\jupyter\labextensions
jupyter-matplotlib v0.9.0 enabled ok
@jupyter-widgets/jupyterlab-manager v3.0.0 enabled ok (python, jupyterlab_widgets)
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (7 by maintainers)
This is normal and expected matplotlib behaviour.
Let’s close this then