简体   繁体   中英

How to plot several data progeress on x axis?

I have data over time for different position and need to plot it like this:

Plot data for certain position

Does anyone know how to do this?

Just reverse the x and y data?

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))

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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