import numpy as np import matplotlib.pyplot as plt x = np.arange(-5, 5, 0.1) y = np.sin(x) plt.plot(x, y) plt.xticks([-6,-4,-2,0,2,4,6]) plt.yticks([-1.5,-1,-0.5,0,0.5,1,1.5]) plt.show()