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

Function test_long_word_wrap

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

Source from the content-addressed store, hash-verified

740
741
742def test_long_word_wrap():
743 fig = plt.figure(figsize=(6, 4))
744 text = fig.text(9.5, 8, 'Alonglineoftexttowrap', wrap=True)
745 fig.canvas.draw()
746 assert text._get_wrapped_text() == 'Alonglineoftexttowrap'
747
748
749def test_wrap_no_wrap():

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…