()
| 4059 | @image_comparison(['violinplot_vert_baseline.png', |
| 4060 | 'violinplot_vert_baseline.png'], style='mpl20') |
| 4061 | def test_vert_violinplot_baseline(): |
| 4062 | # First 9 digits of frac(sqrt(2)) |
| 4063 | np.random.seed(414213562) |
| 4064 | data = [np.random.normal(size=100) for _ in range(4)] |
| 4065 | ax = plt.axes() |
| 4066 | ax.violinplot(data, positions=range(4), showmeans=False, showextrema=False, |
| 4067 | showmedians=False) |
| 4068 | |
| 4069 | # Reuse testcase from above for a labeled data test |
| 4070 | data = {"d": data} |
| 4071 | fig, ax = plt.subplots() |
| 4072 | ax.violinplot("d", positions=range(4), showmeans=False, showextrema=False, |
| 4073 | showmedians=False, data=data) |
| 4074 | |
| 4075 | |
| 4076 | @image_comparison(['violinplot_vert_showmeans.png'], style='mpl20') |
nothing calls this directly
no test coverage detected
searching dependent graphs…