Skip to main content
Source Link
physicsGuy
  • 3.8k
  • 4
  • 30
  • 35

Latex not displayed correctly in matplotlib

When executing the following code in python using jupyter/ipython, the Latex symbols are not displayed correctly. Any Idea why this could be?

import matplotlib.pyplot as plt import numpy as np %matplotlib inline x = np.linspace(0,3) y = np.sin(x) plt.plot(x,y) plt.title(r'$\beta \rho \lambda \xi$',fontsize=30) 

Output:

enter image description here