I'm trying to show speed vs velocity vs acceleration. The specific numbers don't really matter, just the concept. The last graph isn't showing a line with a slope of zero (ex: y=10). I want the program to show it with the x values of the graph being the same as the others (1 to 10). The specific numbers don't matter except for the x-values because I won't be showing the y-values. I just want a 0 slope line to be visible T-T
t = np.arange(1, 10, 1)
spd_graph = np.exp(t/2)
velo_graph = 3*t
accel_graph = .5
# plot speed
ax1 = plt.subplot(311,ylabel='Speed')
plt.plot(t, spd_graph,'c')
plt.setp(ax1.get_xticklabels(), fontsize=6)
plt.setp(ax1.get_yticklabels(), visible=False)
plt.ylim(0,30)
plt.xlim(0,10)
# plot velocity
ax2 = plt.subplot(312,ylabel='Velocity')
plt.plot(t,velo_graph,'g')
plt.setp(ax2.get_xticklabels(), fontsize=6)
plt.setp(ax2.get_yticklabels(), visible=False)
plt.ylim(0,30)
plt.xlim(0,10)
# plot acceleration
ax3 = plt.subplot(313,label='Acceleration',xlabel='Time',ylabel='Acceleration')
plt.plot(accel_graph,'b')
plt.setp(ax3.get_xticklabels(), fontsize=6)
plt.setp(ax3.get_yticklabels(), visible=False)
plt.ylim(0,30)
plt.xlim(0,10)
plt.show()