MCPcopy Index your code
hub / github.com/ipython/ipython / test_figure_to_jpeg

Function test_figure_to_jpeg

tests/test_pylabtools.py:61–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60@dec.skip_without("PIL.Image")
61def 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
72def test_retina_figure():

Callers

nothing calls this directly

Calls 1

_check_pil_jpeg_bytesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…