Commit 7cdc74f
committed
TST: Use text placeholders for empty legends
These tests use `remove_text=True` and set legend labels to empty
strings. However, they are still affected by font metrics because even
the empty string is as tall as the line height (which is calculated from
the height of the "lp" string.)1 parent 5ab47bb commit 7cdc74f
12 files changed
Lines changed: 921 additions & 390 deletions
File tree
- lib/matplotlib/tests
- baseline_images
- test_axes
- test_backend_pdf
- test_bbox_tight
- test_lines
- test_patheffects
Loading
Binary file not shown.
Binary file not shown.
Lines changed: 900 additions & 369 deletions
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4593 | 4593 | | |
4594 | 4594 | | |
4595 | 4595 | | |
4596 | | - | |
| 4596 | + | |
4597 | 4597 | | |
4598 | 4598 | | |
4599 | 4599 | | |
4600 | | - | |
4601 | | - | |
4602 | 4600 | | |
4603 | | - | |
| 4601 | + | |
4604 | 4602 | | |
4605 | 4603 | | |
4606 | 4604 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | | - | |
| 299 | + | |
| 300 | + | |
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
| 308 | + | |
307 | 309 | | |
308 | 310 | | |
309 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
0 commit comments