MCPcopy Index your code
hub / github.com/plotly/plotly.py / test_text

Function test_text

plotly/matplotlylib/mplexporter/tests/test_basic.py:107–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105
106
107def test_text():
108 fig, ax = plt.subplots()
109 ax.set_xlabel("my x label")
110 ax.set_ylabel("my y label")
111 ax.set_title("my title")
112 ax.text(0.5, 0.5, "my text")
113
114 _assert_output_equal(
115 fake_renderer_output(fig, FakeRenderer),
116 """
117 opening figure
118 opening axes
119 draw text 'my text' None
120 draw text 'my x label' xlabel
121 draw text 'my y label' ylabel
122 draw text 'my title' title
123 closing axes
124 closing figure
125 """,
126 )
127
128
129def test_path():

Callers

nothing calls this directly

Calls 4

_assert_output_equalFunction · 0.85
fake_renderer_outputFunction · 0.85
subplotsMethod · 0.80
textMethod · 0.45

Tested by

no test coverage detected