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

Function test_single_minus_sign

lib/matplotlib/tests/test_mathtext.py:383–388  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

381
382
383def test_single_minus_sign():
384 fig = plt.figure()
385 fig.text(0.5, 0.5, '$-$')
386 fig.canvas.draw()
387 t = np.asarray(fig.canvas.renderer.buffer_rgba())
388 assert (t != 0xff).any() # assert that canvas is not all white.
389
390
391@check_figures_equal()

Callers

nothing calls this directly

Calls 4

figureMethod · 0.80
textMethod · 0.45
drawMethod · 0.45
buffer_rgbaMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…