()
| 8147 | |
| 8148 | |
| 8149 | def test_bar_broadcast_args(): |
| 8150 | fig, ax = plt.subplots() |
| 8151 | # Check that a bar chart with a single height for all bars works. |
| 8152 | ax.bar(range(4), 1) |
| 8153 | # Check that a horizontal chart with one width works. |
| 8154 | ax.barh(0, 1, left=range(4), height=1) |
| 8155 | # Check that edgecolor gets broadcast. |
| 8156 | rect1, rect2 = ax.bar([0, 1], [0, 1], edgecolor=(.1, .2, .3, .4)) |
| 8157 | assert rect1.get_edgecolor() == rect2.get_edgecolor() == (.1, .2, .3, .4) |
| 8158 | |
| 8159 | |
| 8160 | def test_invalid_axis_limits(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…