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