Hi,
I found when usetex is set to be True, \mathbb cannot return blackboard bold
font. A minimum reproducing code of mine is:
import matplotlib.pyplot as plt
from matplotlib import rcParams
params = {
'backend':'ps',
'ps.usedistiller':'xpdf',
'axes.labelsize':22,
'text.fontsize':20,
'legend.fontsize':20,
'xtick.labelsize':20,
'ytick.labelsize':20,
'text.usetex':True,
'latex.preamble':r'\usepackage{amsmath,amsfonts,amssymb}',
'figure.figsize':[8,6],
'font.family':'serif',
'font.serif':'Times New Roman'
}
rcParams.update(params)
plt.plot([0,1],[0,1],'r-',lw=3,label=r"Using $\mathbb{D}^p$")
plt.legend()
plt.show()
I want to keep my rcParams settings as unchanged as possible.
Ning
···
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/use-mathbb-when-usetex-True-tp39887.html
Sent from the matplotlib - users mailing list archive at Nabble.com.