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
FIX: when creating a canvas from a Figure use original dpi
When we upscale the DPI for high-dpi screens we stash the original dpi and then
set the figure dpi to the scaled version. If the same Figure instance is
repeatedly passed to a Canvas that support hi-dpi it would go into a loop where
the scaled DPI is treated as the original dpi and infinitely increases.
By grabbing `fig._original_dpi` (which we stash for exactly this reason) we can
avoid this loop.
closesmatplotlib#26380
0 commit comments