What does this warning mean? How can I get rid of this?
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}"]
Code:
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)
question from:
https://stackoverflow.com/questions/65645194/warning-set-it-to-a-single-string-instead 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…