Can python plot power characters like this image??
i just want matplotlib.pyplot plt image looks more good.
Can python plot power characters like this image??
i just want matplotlib.pyplot plt image looks more good.
You can pass LaTeX styled strings to pyplot by wrapping them in dollar signs.
from matplotlib import pyplot as plt
plt.plot(0.5, 0.5, '$m^{2}$')
plt.show()