()
| 59 | |
| 60 | @dec.skip_without("PIL.Image") |
| 61 | def test_figure_to_jpeg(): |
| 62 | _check_pil_jpeg_bytes() |
| 63 | # simple check for at least jpeg-looking output |
| 64 | fig = plt.figure() |
| 65 | ax = fig.add_subplot(1, 1, 1) |
| 66 | ax.plot([1, 2, 3]) |
| 67 | plt.draw() |
| 68 | jpeg = pt.print_figure(fig, "jpeg", pil_kwargs={"optimize": 50})[:100].lower() |
| 69 | assert jpeg.startswith(_JPEG) |
| 70 | |
| 71 | |
| 72 | def test_retina_figure(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…