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

Function test_bars_data

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

Source from the content-addressed store, hash-verified

74
75@pytest.mark.skip
76def test_bars_data():
77 fig, ax = plt.subplots()
78 ax.bar(D["x1"], D["y1"], color="r")
79 ax.barh(D["x2"], D["y2"], color="b")
80 renderer = run_fig(fig)
81 for yi, yf in zip(renderer.plotly_fig["data"][0]["y"], D["y1"]):
82 assert yi == yf, (
83 str(renderer.plotly_fig["data"][0]["y"]) + " is not " + str(D["y1"])
84 )
85 for xi, yf in zip(renderer.plotly_fig["data"][1]["x"], D["y2"]):
86 assert xi == yf, (
87 str(renderer.plotly_fig["data"][1]["x"]) + " is not " + str(D["y2"])
88 )

Callers

nothing calls this directly

Calls 3

run_figFunction · 0.85
subplotsMethod · 0.80
barMethod · 0.45

Tested by

no test coverage detected