You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get_window_extent has a renderer argument. Its optional for some methods and required by others. If it is set to None it uses the cached renderer, but that requires a draw to have been executed first. In this case you have no draw, so the call fails.
I'm skeptical this ever worked. If so, can you tell us what version? Maybe the renderer cache has changed in some way.
In the meantime, it is safest to call leg2.get_window_extent(fig.canvas.get_renderer()).
Bug summary
It seems a bug has crept in with
points_to_pixels
not available as a function called byget_window_extent
Code for reproduction
Actual outcome
Error, as above
Expected outcome
I expected to get coords
Operating system
MacOS 11.6
Matplotlib Version
3.4.2
Matplotlib Backend
MacOSX
Python version
3.9.6
Jupyter version
core 4.7.1; notebook 6.4.0
Other libraries
No response
Installation
conda
Conda channel
conda-forge
The text was updated successfully, but these errors were encountered: