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

Function test_mathwrap

lib/matplotlib/tests/test_text.py:717–723  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

715
716
717def test_mathwrap():
718 fig = plt.figure(figsize=(5, 4))
719 s = r'This is a very $\overline{\mathrm{long}}$ line of Mathtext.'
720 text = fig.text(0, 0.5, s, size=40, wrap=True)
721 fig.canvas.draw()
722 assert text._get_wrapped_text() == ('This is a very $\\overline{\\mathrm{long}}$\n'
723 'line of Mathtext.')
724
725
726def test_get_window_extent_wrapped():

Callers

nothing calls this directly

Calls 4

figureMethod · 0.80
_get_wrapped_textMethod · 0.80
textMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…