Matplotlib Issues

Just to mark down some issues I have met when using matplotlib.pyplot for plotting.

Change global font to Times New Roman

import matplotlib.pyplot as plt
plt.rcParams['font.family'] = 'DeJavu Serif'
plt.rcParams['font.serif'] = ['Times New Roman']

Source: Matplotlib cannot find basic fonts

Previous
Next