File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 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):
337337
338338 .. warning::
339339
340- Be careful when using this function, the results will not update if
341- the artist window extent of the artist changes.
342-
343340 The extent can change due to any changes in the transform stack, such
344341 as changing the Axes limits, the figure size, the canvas used (as is
345342 done when saving a figure), or the DPI.
346343
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.
349348
350349 To get accurate results you may need to manually call
351350 `matplotlib.figure.Figure.savefig` or
You can’t perform that action at this time.
0 commit comments