Avoiding Type 3 fonts in matplotlib plots
The Python plotting library, matplotlib, uses Type 3 fonts by default. However, Type 3 fonts do not display and print from some platforms.
We could use the following code to force matplotlib to produce Type 1 fonts.
matplotlib.rcParams['text.usetex'] = True