Commit 0362a4e
committed
Correctly position text with nonzero descent with afm fonts / ps output.
See e.g.
```
rcParams["ps.useafm"] = True
text(.5, .5, "qk")
axhline(.5)
savefig("/tmp/test.ps")
```
Previously the bottom of the tip of the "q" would be on the baseline;
now the baseline is correctly positioned.
(I picked a relatively generic name for the test because we could later
update the baseline image "in place" for more afm tests.)1 parent c1f6515 commit 0362a4e
3 files changed
Lines changed: 76 additions & 2 deletions
File tree
- lib/matplotlib
- backends
- tests
- baseline_images/test_backend_ps
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
544 | | - | |
545 | 544 | | |
546 | 545 | | |
547 | 546 | | |
| |||
558 | 557 | | |
559 | 558 | | |
560 | 559 | | |
561 | | - | |
| 560 | + | |
562 | 561 | | |
563 | 562 | | |
564 | 563 | | |
| |||
Lines changed: 66 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
0 commit comments