MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_annotate_errors

Function test_annotate_errors

lib/matplotlib/tests/test_text.py:261–265  ·  view source on GitHub ↗
(err, xycoords, match)

Source from the content-addressed store, hash-verified

259 (ValueError, "axes foo", "'foo' is not a recognized unit"),
260))
261def test_annotate_errors(err, xycoords, match):
262 fig, ax = plt.subplots()
263 with pytest.raises(err, match=match):
264 ax.annotate('xy', (0, 0), xytext=(0.5, 0.5), xycoords=xycoords)
265 fig.canvas.draw()
266
267
268@image_comparison(['titles'], style='mpl20')

Callers

nothing calls this directly

Calls 3

annotateMethod · 0.80
subplotsMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…