Commit 6fee86a
committed
gtk3: Fix Cairo backend
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.1 parent 5c55265 commit 6fee86a
1 file changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 16 | | |
| 17 | + | |
| 18 | + | |
21 | 19 | | |
22 | 20 | | |
23 | | - | |
24 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| |||
0 commit comments