我正在尝试创建一个箱线图,将y与x进行分组的数据进行分组。我在making binned boxplot in matplotlib with numpy and scipy in Python中找到了一个有用的示例。现在的问题非常简单。如何在matplotlib.pyplot.boxplot中指定盒子的颜色,因为我想将其设置为透明,以便读者也可以看到原始数据。我知道存在于http://matplotlib.sourceforge.net/examples/pylab_examples/boxplot_demo2.html中显示的示例,但是否有比这更简单的方法?直接在boxplot中设置盒子颜色似乎很奇怪。谢谢。
patch_artist=True
而不是path_artist=True
。 - klaus se