File tree 1 file changed +4
-5
lines changed 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -337,15 +337,14 @@ def get_window_extent(self, renderer=None):
337
337
338
338
.. warning::
339
339
340
- Be careful when using this function, the results will not update if
341
- the artist window extent of the artist changes.
342
-
343
340
The extent can change due to any changes in the transform stack, such
344
341
as changing the Axes limits, the figure size, the canvas used (as is
345
342
done when saving a figure), or the DPI.
346
343
347
- This can lead to unexpected behavior where interactive figures will
348
- look fine on the screen, but will save incorrectly.
344
+ Relying on a once-retrieved window extent can lead to unexpected
345
+ behavior in various cases such as interactive figures being resized or
346
+ moved to a screen with different dpi, or figures that look fine on
347
+ screen render incorrectly when saved to file.
349
348
350
349
To get accurate results you may need to manually call
351
350
`matplotlib.figure.Figure.savefig` or
You can’t perform that action at this time.
0 commit comments