擅长:python、mysql、java
<p>很遗憾,您不能使用粗体字体加粗符号,请参见tex.stackexchange上的<a href="https://tex.stackexchange.com/questions/595/how-can-i-get-bold-math-symbols">this question</a>。</p>
<p>如答案所示,可以使用<code>\boldsymbol</code>来加粗phi:</p>
<pre><code>r'$\boldsymbol{\phi}$'
</code></pre>
<p>您需要将<code>amsmath</code>加载到TeX前导码中:</p>
<pre><code>matplotlib.rc('text', usetex=True)
matplotlib.rcParams['text.latex.preamble']=[r"\usepackage{amsmath}"]
</code></pre>