import numpy as np import matplotlib.pyplot as plt x = np.arange(-5, 5, 0.2) y = np.sin(x) plt.plot(x, y, "-or") plt.savefig("line.png")