Commit a05f379
committed
FIX: reset to original DPI in getstate
There is a bit of extra caution in extracting the original DPI
just in case there is a canvas class that does something very funny
and the `_orignial_dpi` attribute does not get set (it is set to the `Figure`
instance in the `CanvasBase` init, not in the `Figure` init).
closes matplotlib#234711 parent 33a0599 commit a05f379
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3023 | 3023 | | |
3024 | 3024 | | |
3025 | 3025 | | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
3026 | 3029 | | |
3027 | 3030 | | |
3028 | 3031 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
1380 | 1381 | | |
1381 | 1382 | | |
1382 | 1383 | | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
0 commit comments