()
| 74 | |
| 75 | @pytest.mark.skip |
| 76 | def 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 | ) |