Commit 687f0f56 by re

直播

parent 8799e389
{ {
...@@ -3976,7 +3976,7 @@ ...@@ -3976,7 +3976,7 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"from matplotlib import pyplot as plt\n", "from matplotlib import pyplot as plt\n",
"\n", "# 若画的图有中文(正常显示中文)\n",
"plt.rcParams['font.family'] = 'serif' # 设置字体类型,例如 'serif', 'sans-serif'\n", "plt.rcParams['font.family'] = 'serif' # 设置字体类型,例如 'serif', 'sans-serif'\n",
"plt.rcParams['font.serif'] = ['Times New Roman'] # 指定具体的 serif 字体" "plt.rcParams['font.serif'] = ['Times New Roman'] # 指定具体的 serif 字体"
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment