我试着用matplotlib制作一个凹槽盒图,但我发现缺口框往往会过度扩展,然后折叠回原来的位置。当我制作一个常规的盒子图时,不会发生这种情况。
这可以从下面的代码和生成的生成的绘图中看到:
import matplotlib.pyplot as plt
data = [[-0.056, -0.037, 0.010, 0.077, 0.082],
[-0.014, 0.021, 0.051, 0.073, 0.079]]
# Set 2 plots with vertical layout (1 on top of other)
fig, (ax1, ax2) = plt.