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

Function test_path

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

Source from the content-addressed store, hash-verified

127
128
129def test_path():
130 fig, ax = plt.subplots()
131 ax.add_patch(plt.Circle((0, 0), 1))
132 ax.add_patch(plt.Rectangle((0, 0), 1, 2))
133
134 _assert_output_equal(
135 fake_renderer_output(fig, FakeRenderer),
136 """
137 opening figure
138 opening axes
139 draw path with 25 vertices
140 draw path with 4 vertices
141 closing axes
142 closing figure
143 """,
144 )
145
146
147def test_Figure():

Callers

nothing calls this directly

Calls 3

_assert_output_equalFunction · 0.85
fake_renderer_outputFunction · 0.85
subplotsMethod · 0.80

Tested by

no test coverage detected