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

Function test_line_data

tests/test_optional/test_matplotlylib/test_data.py:14–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13@pytest.mark.skip
14def test_line_data():
15 fig, ax = plt.subplots()
16 ax.plot(D["x1"], D["y1"])
17 renderer = run_fig(fig)
18 for xi, xf, yi, yf in zip(
19 renderer.plotly_fig["data"][0]["x"],
20 D["x1"],
21 renderer.plotly_fig["data"][0]["y"],
22 D["y1"],
23 ):
24 assert xi == xf, (
25 str(renderer.plotly_fig["data"][0]["x"]) + " is not " + str(D["x1"])
26 )
27 assert yi == yf, (
28 str(renderer.plotly_fig["data"][0]["y"]) + " is not " + str(D["y1"])
29 )
30
31
32@pytest.mark.skip

Callers

nothing calls this directly

Calls 2

run_figFunction · 0.85
subplotsMethod · 0.80

Tested by

no test coverage detected