简体   繁体   English

如何 plot x 轴上的几个数据progeress?

[英]How to plot several data progeress on x axis?

I have data over time for different position and need to plot it like this:随着时间的推移,我有不同 position 的数据,需要 plot 像这样:

Plot data for certain position某些 position 的 Plot 数据

Does anyone know how to do this?有谁知道如何做到这一点?

Just reverse the x and y data?只是反转x和y数据?

data = np.random.uniform(-0.01, 0.01, (20, 3))
xc = [0.26625, 0.28375, 0.30125]
for i in range(3):
    plt.plot(xc[i] + data[:, i], range(20))

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM