import numpy as np import matplotlib.pyplot as plt x = np.arange(-5, 5, 0.1) y = np.sin(x) plt.plot(x, y, "-", label="-") plt.xlabel(r"$\theta$") plt.ylabel(r"$\sin \, \theta$") plt.savefig("tex.png")