import matplotlib.pyplot as pltax = plt.gca() # or any other way to get an axis objectx = [0,1,2,3,4,5,6]y = [0,1,4,9,16,25,36]ax.plot(x, y, label=r'$\sin (x)$')ax.legend()
Write a Latex formula in the legend of a plot using Matplotlib
0 comments
Like
Comments
Commenting on this post isn't available anymore. Contact the site owner for more info.