I've tested matlpotlib using CSV file, which y and z value isn't connected as below.
I can visualize this data using a scatter plot but I can't connect these dots but the final goal is creating a connected graph using the line plot. Why it can't visualize with the line plot?
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv(r'C:\Users\PythonTest\source\file.csv')
ax1 = plt.subplot2grid((1, 1), (0, 0))
x = df.time
y = df.gx
z = df.sp
# ax1.scatter(x, y, color='k', s=0.1)
# ax1.scatter(x, z, color='c', s=0.1)
ax1.plot(x, y, color='k')
ax1.plot(x, z, color='c')
plt.show()

