The font is changed with:
import os
from matplotlib import font_manager as fm, rcParams
fpath = os.path.join(rcParams["datapath"], '/gdrive/My Drive/animal/data/times-new-roman.ttf')
prop = fm.FontProperties(fname=fpath,size=17)
I am concatenating my text labels as follows:
label = $\it{'+ text + '}$
from italic symbols in matplotlib?
However Times new roman disappears everywhere italics appear. It happens in the following plot with the xtick_labels
, but has happened with ax.annotate()
and ax.legend()