是否有可能在这个地块之上放置第二个地块?
我从嵌入式设备获取这些数据,有时进程会产生一个值,我无法将其绘制到我的发行版中,但如果可能的话,我想以某种方式表示这个丢失的值。
我在想,在Y=-5上加上一个红色的正方形比较好,X=phy是x指数中贯穿这个问题的。
top_0 = (umax - (umax % 10) + 20)
fig0 = plt.figure(figsize=(18, 12))
axes = fig0.add_subplot(111)
box_plot0 = axes.boxplot(matrix)
plt.setp(box_plot0['fliers'], color='red')
plt.setp(box_plot0['whiskers'], color='black')
plt.setp(box_plot0['medians'], color='blue')
axes.set_title('Graph of {} {} Eye Openings'.format(self.engine, 0))
axes.set_xlabel(x_axis_label)
axes.set_ylabel('Score')
axes.set_ylim(bottom=-5, top=top_0)
yticks_0 = range(0, int(top_0), 10)
axes.yaxis.set_ticks(yticks_0)
axes.yaxis.grid(True, linestyle='-', which='major', color='lightgrey', alpha=0.5)
means0 = [np.mean(x) if len(x) > 0 else 0 for x in matrix]
plt.show()

发布于 2015-01-30 14:02:49
当只需绘图时,您可以在plt.show()之前添加以下代码,其中我假设x_missing_val是一个数组,其中包含缺失值的x坐标。
axes.plot(x_missing_val,-5*ones(x_missing_val.size),'rs')https://stackoverflow.com/questions/28227415
复制相似问题