Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With GTK3, the Cairo surface we get is for the whole window, which means the automatic size inference from matplotlib#22004 gets the wrong size. For the GtkDrawingArea, the Cairo context is aligned and clipped to the widget, so nothing goes out-of-bounds. However, since the Cairo renderer flips the origin using the height in the calculation (which is, for the window, bigger than the drawing widget), everything is drawn lower than it should.
- Loading branch information