Commit ad703c3
committed
Simplify binary data handling in ps backend.
- bytes.hex() can now perform linewrapping itself, so use that in
draw_image.
- draw_gouraud_triangles can rely on PostScript's hexstring format
(`<...>` instead of `(...)`) and thus on bytes.hex() too. This makes
_quote_ps_string fully unused, thus tweak the deprecation of
quote_ps_string.
Also add a test for PostScript Gouraud shading, which was previously not
covered at all.1 parent dab648a commit ad703c3
File tree
3 files changed
+343
-22
lines changed- lib/matplotlib
- backends
- tests
- baseline_images/test_axes
3 files changed
+343
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | 94 | | |
99 | 95 | | |
100 | 96 | | |
| |||
447 | 443 | | |
448 | 444 | | |
449 | 445 | | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
| 446 | + | |
461 | 447 | | |
462 | 448 | | |
463 | 449 | | |
| |||
479 | 465 | | |
480 | 466 | | |
481 | 467 | | |
482 | | - | |
| 468 | + | |
483 | 469 | | |
484 | 470 | | |
485 | 471 | | |
| |||
737 | 723 | | |
738 | 724 | | |
739 | 725 | | |
740 | | - | |
| 726 | + | |
741 | 727 | | |
742 | 728 | | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
747 | 733 | | |
748 | 734 | | |
749 | 735 | | |
| |||
754 | 740 | | |
755 | 741 | | |
756 | 742 | | |
757 | | - | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
758 | 746 | | |
759 | 747 | | |
760 | 748 | | |
| |||
Lines changed: 312 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments