I have made the following plot for an engine's piston speed. Notice on the x axis goes from about 0 to 360 degrees with a spacing of 50. How can I change this to a spacing of 90? Thanks for any help anyone can provide.
My Plotting code is shown as follows:
plt.figure()
x_axis = theta_range_deg
plt.subplot(1, 3, 1)
plt.plot(x_axis, position_list)
plt.xlabel("Angle (degrees)")
plt.ylabel("Position (in)")
plt.title("Position vs Angle")
plt.grid(color='grey', linestyle='-', linewidth=.5)
plt.subplot(1, 3, 2)
plt.plot(x_axis, piston_speed_list)
plt.plot(x_axis,mean_speed_list)
plt.plot(90, 0,'.', color = 'black')
plt.plot(270, 0,'*', color = 'black')
plt.xlabel("Angle (degrees)")
plt.ylabel("Piston Velocity (mph)")
plt.title("Piston Speed vs Angle")
plt.grid(color='grey', linestyle='-', linewidth=.5)
plt.gca().legend(('True Speed','Mean Piston Speed','Top Dead Center','Bottom Dead Center'))
plt.subplot(1, 3, 3)
plt.plot(x_axis, acceleration_list)
plt.xlabel("Angle (degrees)")
plt.ylabel("Piston Acceleration (g)")
plt.title("Piston Net Force vs Angle")
plt.grid(color='grey', linestyle='-', linewidth=.5)
plt.show()

