import matplotlib.pyplot as plt
fig = plt.figure(figsize = (10,10))
ax = fig.add_subplot(111)
x1 = [10,20,30]
y1 = [20,40,10]
#plot the first line
ax.plot(x1, y1)
x2 = [10,20,30]
y2 = [40,10,30]
#plot the second line
ax.plot(x2, y2)
plt.show()
Этот фрагмент кода должен иметь возможность создавать несколько строк по одной оси