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
{{ message }}
Repository navigation
Bug in the HiDPI support in the qt5agg backend #8717
The FigureCanvas sets a (non-binding) sizeHint; the FigureManager takes the hint + the toolbar size and sets the window to the correct size. I think if you want to use the canvas directly, you'll need to read the size and set it as a hard requirement, or maybe set the QSizePolicy to require the hinted size.
Activity
tacaswell commentedon Jun 5, 2017
😞 I thought we had this sorted out.
There is a bunch of jiggery-pokery to double the DPI under the hood. Does it help if you set the figure size after your create and add the canvas?
attn @efiring
djpine commentedon Jun 5, 2017
QuLogic commentedon Jun 5, 2017
The
FigureCanvassets a (non-binding)sizeHint; theFigureManagertakes the hint + the toolbar size and sets the window to the correct size. I think if you want to use the canvas directly, you'll need to read the size and set it as a hard requirement, or maybe set the QSizePolicy to require the hinted size.FIX: Qt5 account for dpiratio as early as possible