Commit 700047a
committed
Fix tight_layout() on "canvasless" figures.
This patch avoids a deprecation warning ("unexpected argument 'dpi'")
on `Figure().tight_layout()`. To do so we stop passing `dpi` to
`print_foo`, which is actually fine because `print_figure` already sets
the figure dpi to whatever value we will want, so `print_foo` can just
read `self.figure.dpi`. (The pgf backend already handles that
correctly.)1 parent 92b4bc3 commit 700047aCopy full SHA for 700047a
File tree
Expand file treeCollapse file tree
6 files changed
+37
-16
lines changedOpen diff view settings
Filter options
- doc/api/next_api_changes/deprecations
- lib/matplotlib
- backends
Expand file treeCollapse file tree
6 files changed
+37
-16
lines changedOpen diff view settings
Collapse file
doc/api/next_api_changes/deprecations/19503-AL.rst
Copy file name to clipboard+6Lines changed: 6 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
Collapse file
lib/matplotlib/backend_bases.py
Copy file name to clipboardExpand all lines: lib/matplotlib/backend_bases.py+11-9Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1573 | 1573 | |
1574 | 1574 | |
1575 | 1575 | |
1576 | | - |
| 1576 | + |
1577 | 1577 | |
1578 | 1578 | |
1579 | 1579 | |
| ||
2235 | 2235 | |
2236 | 2236 | |
2237 | 2237 | |
2238 | | - |
2239 | | - |
2240 | | - |
2241 | | - |
2242 | | - |
2243 | | - |
2244 | | - |
2245 | | - |
| 2238 | + |
| 2239 | + |
| 2240 | + |
| 2241 | + |
| 2242 | + |
| 2243 | + |
| 2244 | + |
| 2245 | + |
| 2246 | + |
| 2247 | + |
2246 | 2248 | |
2247 | 2249 | |
2248 | 2250 | |
|
Collapse file
lib/matplotlib/backends/backend_pdf.py
Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_pdf.py+4-1Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2701 | 2701 | |
2702 | 2702 | |
2703 | 2703 | |
| 2704 | + |
2704 | 2705 | |
2705 | | - |
| 2706 | + |
2706 | 2707 | |
2707 | 2708 | |
| 2709 | + |
| 2710 | + |
2708 | 2711 | |
2709 | 2712 | |
2710 | 2713 | |
|
Collapse file
lib/matplotlib/backends/backend_ps.py
Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_ps.py+4-1Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
829 | 829 | |
830 | 830 | |
831 | 831 | |
| 832 | + |
832 | 833 | |
833 | 834 | |
834 | | - |
| 835 | + |
835 | 836 | |
836 | 837 | |
| 838 | + |
| 839 | + |
837 | 840 | |
838 | 841 | |
839 | 842 | |
|
Collapse file
lib/matplotlib/backends/backend_svg.py
Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_svg.py+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1343 | 1343 | |
1344 | 1344 | |
1345 | 1345 | |
1346 | | - |
| 1346 | + |
| 1347 | + |
1347 | 1348 | |
1348 | | - |
| 1349 | + |
| 1350 | + |
| 1351 | + |
1349 | 1352 | |
1350 | 1353 | |
1351 | 1354 | |
|
Collapse file
lib/matplotlib/backends/backend_template.py
Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_template.py+7-3Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
204 | 204 | |
205 | 205 | |
206 | 206 | |
207 | | - |
208 | | - |
209 | | - |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
210 | 214 | |
211 | 215 | |
212 | 216 | |
|
0 commit comments