这个警告是什么意思?我怎样才能摆脱这个?
Support for setting the 'text.latex.preamble' or 'pgf.preamble' rcParam to a list of strings is deprecated since 3.3 and will be removed two minor releases later; set it to a single string instead.
plt.rcParams['text.latex.preamble'] = [r"\usepackage{bm}", [r"\usepackage{amsmath}"]
代码:
import matplotlib.pyplot as plt
plt.rcParams['text.latex.preamble'] = [r"\usepackage{bm}"], [r"\usepackage{amsmath}"]
params = {'text.usetex' : True,
'font.size' : 28,
'font.family' : 'lmodern',
}
plt.rcParams.update(params)