{"id":1145070,"date":"2025-01-08T23:05:07","date_gmt":"2025-01-08T15:05:07","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1145070.html"},"modified":"2025-01-08T23:05:10","modified_gmt":"2025-01-08T15:05:10","slug":"python%e5%a6%82%e4%bd%95%e5%9c%a8%e4%b8%80%e4%b8%aa%e7%94%bb%e6%9d%bf%e4%b8%8a%e8%af%9d%e4%b8%a4%e6%9d%a1%e6%9b%b2%e7%ba%bf","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1145070.html","title":{"rendered":"python\u5982\u4f55\u5728\u4e00\u4e2a\u753b\u677f\u4e0a\u8bdd\u4e24\u6761\u66f2\u7ebf"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24181833\/bc4f9c2d-43f2-4bb4-8d72-f71cac631912.webp\" alt=\"python\u5982\u4f55\u5728\u4e00\u4e2a\u753b\u677f\u4e0a\u8bdd\u4e24\u6761\u66f2\u7ebf\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5728\u4e00\u4e2a\u753b\u677f\u4e0a\u7ed8\u5236\u4e24\u6761\u66f2\u7ebf\u3002\u6700\u5e38\u7528\u7684\u65b9\u5f0f\u662f\u4f7f\u7528Matplotlib\u5e93\u3002\u901a\u8fc7Matplotlib\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u540c\u4e00\u56fe\u5f62\u4e0a\u7ed8\u5236\u591a\u6761\u66f2\u7ebf\uff0c\u5206\u522b\u4f7f\u7528\u4e0d\u540c\u7684\u989c\u8272\u548c\u6837\u5f0f\u6765\u533a\u5206\u5b83\u4eec\u3002\u4e0b\u9762\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728\u4e00\u4e2a\u753b\u677f\u4e0a\u7ed8\u5236\u4e24\u6761\u66f2\u7ebf\u3002<\/strong><\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528Matplotlib\u7ed8\u5236\u591a\u6761\u66f2\u7ebf\u3001\u8bbe\u7f6e\u66f2\u7ebf\u6837\u5f0f\u3001\u6dfb\u52a0\u56fe\u4f8b\u548c\u6807\u7b7e\u3001\u4fdd\u5b58\u56fe\u50cf<\/strong>\u662f\u5b9e\u73b0\u8fd9\u4e00\u76ee\u6807\u7684\u5173\u952e\u6b65\u9aa4\u3002\u6211\u4eec\u9996\u5148\u7b80\u8981\u6982\u8ff0\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u7136\u540e\u6df1\u5165\u8ba8\u8bba\u6bcf\u4e2a\u6b65\u9aa4\u7684\u7ec6\u8282\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528Matplotlib\u7ed8\u5236\u591a\u6761\u66f2\u7ebf<\/h3>\n<\/p>\n<p><p>Matplotlib\u662fPython\u4e2d\u6700\u6d41\u884c\u7684\u7ed8\u56fe\u5e93\u4e4b\u4e00\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u6765\u521b\u5efa\u5404\u79cd\u7c7b\u578b\u7684\u56fe\u8868\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Matplotlib\u7684<code>pyplot<\/code>\u6a21\u5757\u6765\u7ed8\u5236\u66f2\u7ebf\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u5728\u4e00\u4e2a\u753b\u677f\u4e0a\u7ed8\u5236\u4e24\u6761\u66f2\u7ebf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>import numpy as np<\/p>\n<h2><strong>\u521b\u5efa\u6570\u636e<\/strong><\/h2>\n<p>x = np.linspace(0, 10, 100)<\/p>\n<p>y1 = np.sin(x)<\/p>\n<p>y2 = np.cos(x)<\/p>\n<h2><strong>\u7ed8\u5236\u7b2c\u4e00\u6761\u66f2\u7ebf<\/strong><\/h2>\n<p>plt.plot(x, y1, label=&#39;sin(x)&#39;)<\/p>\n<h2><strong>\u7ed8\u5236\u7b2c\u4e8c\u6761\u66f2\u7ebf<\/strong><\/h2>\n<p>plt.plot(x, y2, label=&#39;cos(x)&#39;)<\/p>\n<h2><strong>\u6dfb\u52a0\u56fe\u4f8b<\/strong><\/h2>\n<p>plt.legend()<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5bfc\u5165\u4e86<code>matplotlib.pyplot<\/code>\u6a21\u5757\u548c<code>numpy<\/code>\u5e93\uff0c\u7136\u540e\u4f7f\u7528<code>numpy<\/code>\u521b\u5efa\u4e86\u4e24\u4e2a\u6570\u636e\u96c6\u3002\u63a5\u7740\uff0c\u6211\u4eec\u4f7f\u7528<code>plt.plot()<\/code>\u51fd\u6570\u5206\u522b\u7ed8\u5236\u4e86\u4e24\u6761\u66f2\u7ebf\u3002\u6700\u540e\uff0c\u6211\u4eec\u6dfb\u52a0\u4e86\u56fe\u4f8b\u5e76\u663e\u793a\u4e86\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u8bbe\u7f6e\u66f2\u7ebf\u6837\u5f0f<\/h3>\n<\/p>\n<p><p>\u5728\u7ed8\u5236\u591a\u6761\u66f2\u7ebf\u65f6\uff0c\u6211\u4eec\u901a\u5e38\u9700\u8981\u533a\u5206\u5b83\u4eec\u3002\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u4e0d\u540c\u7684\u989c\u8272\u3001\u7ebf\u578b\u548c\u6807\u8bb0\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<code>plt.plot()<\/code>\u51fd\u6570\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u53c2\u6570\u6765\u63a7\u5236\u66f2\u7ebf\u7684\u6837\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u7ed8\u5236\u7b2c\u4e00\u6761\u66f2\u7ebf\uff0c\u4f7f\u7528\u7ea2\u8272\u5b9e\u7ebf<\/p>\n<p>plt.plot(x, y1, &#39;r-&#39;, label=&#39;sin(x)&#39;)<\/p>\n<h2><strong>\u7ed8\u5236\u7b2c\u4e8c\u6761\u66f2\u7ebf\uff0c\u4f7f\u7528\u84dd\u8272\u865a\u7ebf<\/strong><\/h2>\n<p>plt.plot(x, y2, &#39;b--&#39;, label=&#39;cos(x)&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u683c\u5f0f\u5b57\u7b26\u4e32<code>&#39;r-&#39;<\/code>\u548c<code>&#39;b--&#39;<\/code>\u6765\u6307\u5b9a\u66f2\u7ebf\u7684\u989c\u8272\u548c\u7ebf\u578b\u3002<code>&#39;r-&#39;<\/code>\u8868\u793a\u7ea2\u8272\u5b9e\u7ebf\uff0c<code>&#39;b--&#39;<\/code>\u8868\u793a\u84dd\u8272\u865a\u7ebf\u3002\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u53c2\u6570\u6765\u81ea\u5b9a\u4e49\u66f2\u7ebf\u7684\u6837\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u6dfb\u52a0\u56fe\u4f8b\u548c\u6807\u7b7e<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u4f7f\u56fe\u8868\u66f4\u52a0\u6613\u8bfb\uff0c\u6211\u4eec\u901a\u5e38\u9700\u8981\u4e3a\u6bcf\u6761\u66f2\u7ebf\u6dfb\u52a0\u56fe\u4f8b\uff0c\u5e76\u4e3a\u56fe\u8868\u6dfb\u52a0\u6807\u9898\u548c\u8f74\u6807\u7b7e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6dfb\u52a0\u56fe\u8868\u6807\u9898<\/p>\n<p>plt.title(&#39;Sine and Cosine Functions&#39;)<\/p>\n<h2><strong>\u6dfb\u52a0x\u8f74\u548cy\u8f74\u6807\u7b7e<\/strong><\/h2>\n<p>plt.xlabel(&#39;x&#39;)<\/p>\n<p>plt.ylabel(&#39;y&#39;)<\/p>\n<h2><strong>\u6dfb\u52a0\u56fe\u4f8b<\/strong><\/h2>\n<p>plt.legend()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>plt.title()<\/code>\u51fd\u6570\u6dfb\u52a0\u4e86\u56fe\u8868\u7684\u6807\u9898\uff0c\u4f7f\u7528<code>plt.xlabel()<\/code>\u548c<code>plt.ylabel()<\/code>\u51fd\u6570\u5206\u522b\u6dfb\u52a0\u4e86x\u8f74\u548cy\u8f74\u7684\u6807\u7b7e\u3002\u6700\u540e\uff0c\u6211\u4eec\u4f7f\u7528<code>plt.legend()<\/code>\u51fd\u6570\u6dfb\u52a0\u4e86\u56fe\u4f8b\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4fdd\u5b58\u56fe\u50cf<\/h3>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>plt.savefig()<\/code>\u51fd\u6570\u5c06\u56fe\u50cf\u4fdd\u5b58\u5230\u6587\u4ef6\u4e2d\u3002<code>plt.savefig()<\/code>\u51fd\u6570\u652f\u6301\u591a\u79cd\u56fe\u50cf\u683c\u5f0f\uff0c\u5982PNG\u3001JPEG\u548cPDF\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4fdd\u5b58\u56fe\u50cf\u5230\u6587\u4ef6<\/p>\n<p>plt.savefig(&#39;sine_cosine.png&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>plt.savefig()<\/code>\u51fd\u6570\u5c06\u56fe\u50cf\u4fdd\u5b58\u4e3aPNG\u683c\u5f0f\u7684\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5b9e\u9645\u5e94\u7528\u793a\u4f8b<\/h3>\n<\/p>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u66f4\u590d\u6742\u7684\u793a\u4f8b\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u5728\u4e00\u4e2a\u753b\u677f\u4e0a\u7ed8\u5236\u4e24\u6761\u66f2\u7ebf\uff0c\u5e76\u81ea\u5b9a\u4e49\u5b83\u4eec\u7684\u6837\u5f0f\u3001\u6dfb\u52a0\u56fe\u4f8b\u548c\u6807\u7b7e\u3001\u4ee5\u53ca\u4fdd\u5b58\u56fe\u50cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>import numpy as np<\/p>\n<h2><strong>\u521b\u5efa\u6570\u636e<\/strong><\/h2>\n<p>x = np.linspace(0, 10, 100)<\/p>\n<p>y1 = np.sin(x)<\/p>\n<p>y2 = np.cos(x)<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u56fe\u5f62<\/strong><\/h2>\n<p>fig, ax = plt.subplots()<\/p>\n<h2><strong>\u7ed8\u5236\u7b2c\u4e00\u6761\u66f2\u7ebf\uff0c\u4f7f\u7528\u7ea2\u8272\u5b9e\u7ebf\uff0c\u7ebf\u5bbd\u4e3a2\uff0c\u6807\u8bb0\u4e3a\u5706\u70b9<\/strong><\/h2>\n<p>ax.plot(x, y1, &#39;r-o&#39;, label=&#39;sin(x)&#39;, linewidth=2)<\/p>\n<h2><strong>\u7ed8\u5236\u7b2c\u4e8c\u6761\u66f2\u7ebf\uff0c\u4f7f\u7528\u84dd\u8272\u865a\u7ebf\uff0c\u7ebf\u5bbd\u4e3a2\uff0c\u6807\u8bb0\u4e3a\u65b9\u5757<\/strong><\/h2>\n<p>ax.plot(x, y2, &#39;b--s&#39;, label=&#39;cos(x)&#39;, linewidth=2)<\/p>\n<h2><strong>\u8bbe\u7f6e\u6807\u9898\u548c\u8f74\u6807\u7b7e<\/strong><\/h2>\n<p>ax.set_title(&#39;Sine and Cosine Functions&#39;)<\/p>\n<p>ax.set_xlabel(&#39;x&#39;)<\/p>\n<p>ax.set_ylabel(&#39;y&#39;)<\/p>\n<h2><strong>\u6dfb\u52a0\u7f51\u683c<\/strong><\/h2>\n<p>ax.grid(True)<\/p>\n<h2><strong>\u6dfb\u52a0\u56fe\u4f8b<\/strong><\/h2>\n<p>ax.legend()<\/p>\n<h2><strong>\u4fdd\u5b58\u56fe\u50cf\u5230\u6587\u4ef6<\/strong><\/h2>\n<p>fig.savefig(&#39;sine_cosine_custom.png&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u521b\u5efa\u4e86\u4e00\u4e2a\u65b0\u7684\u56fe\u5f62\u548c\u5750\u6807\u8f74\u5bf9\u8c61\u3002\u7136\u540e\uff0c\u6211\u4eec\u4f7f\u7528<code>ax.plot()<\/code>\u51fd\u6570\u7ed8\u5236\u4e86\u4e24\u6761\u66f2\u7ebf\uff0c\u5e76\u81ea\u5b9a\u4e49\u4e86\u5b83\u4eec\u7684\u6837\u5f0f\u3002\u63a5\u7740\uff0c\u6211\u4eec\u8bbe\u7f6e\u4e86\u56fe\u8868\u7684\u6807\u9898\u548c\u8f74\u6807\u7b7e\uff0c\u5e76\u6dfb\u52a0\u4e86\u7f51\u683c\u548c\u56fe\u4f8b\u3002\u6700\u540e\uff0c\u6211\u4eec\u4f7f\u7528<code>fig.savefig()<\/code>\u51fd\u6570\u5c06\u56fe\u50cf\u4fdd\u5b58\u5230\u6587\u4ef6\u4e2d\uff0c\u5e76\u663e\u793a\u4e86\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u7ed3\u8bba<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u4e00\u4e2a\u753b\u677f\u4e0a\u7ed8\u5236\u591a\u6761\u66f2\u7ebf\uff0c\u5e76\u81ea\u5b9a\u4e49\u5b83\u4eec\u7684\u6837\u5f0f\u3001\u6dfb\u52a0\u56fe\u4f8b\u548c\u6807\u7b7e\uff0c\u4ee5\u53ca\u4fdd\u5b58\u56fe\u50cf\u3002Matplotlib\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u6765\u521b\u5efa\u9ad8\u8d28\u91cf\u7684\u56fe\u8868\uff0c\u4f7f\u5f97\u6570\u636e\u53ef\u89c6\u5316\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\u548c\u9ad8\u6548\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u66f2\u7ebf\u56fe\u8fd8\u662f\u590d\u6742\u7684\u6570\u636e\u56fe\u8868\uff0cMatplotlib\u90fd\u80fd\u6ee1\u8db3\u6211\u4eec\u7684\u9700\u6c42\u3002\u901a\u8fc7\u4e0d\u65ad\u5b9e\u8df5\u548c\u5b66\u4e60\uff0c\u6211\u4eec\u53ef\u4ee5\u638c\u63e1\u66f4\u591a\u7684\u6280\u5de7\u548c\u65b9\u6cd5\uff0c\u63d0\u5347\u6570\u636e\u53ef\u89c6\u5316\u7684\u6c34\u5e73\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u4e00\u4e2a\u753b\u677f\u6765\u7ed8\u5236\u66f2\u7ebf\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528matplotlib\u5e93\u521b\u5efa\u753b\u677f\u5e76\u7ed8\u5236\u66f2\u7ebf\u3002\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5matplotlib\u5e93\u3002\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4<code>pip install matplotlib<\/code>\u6765\u5b89\u88c5\u3002\u4f7f\u7528<code>plt.subplot()<\/code>\u51fd\u6570\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u753b\u677f\uff0c\u7136\u540e\u4f7f\u7528<code>plt.plot()<\/code>\u51fd\u6570\u7ed8\u5236\u66f2\u7ebf\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">import matplotlib.pyplot as plt\nimport numpy as np\n\nx = np.linspace(0, 10, 100)\ny1 = np.sin(x)\ny2 = np.cos(x)\n\nplt.subplot(1, 1, 1)  # \u521b\u5efa\u4e00\u4e2a\u753b\u677f\nplt.plot(x, y1, label=&#39;sin(x)&#39;, color=&#39;blue&#39;)\nplt.plot(x, y2, label=&#39;cos(x)&#39;, color=&#39;red&#39;)\nplt.legend()\nplt.title(&#39;Sin and Cos Curves&#39;)\nplt.xlabel(&#39;X-axis&#39;)\nplt.ylabel(&#39;Y-axis&#39;)\nplt.show()\n<\/code><\/pre>\n<p><strong>\u7ed8\u5236\u66f2\u7ebf\u65f6\u5982\u4f55\u81ea\u5b9a\u4e49\u989c\u8272\u548c\u6837\u5f0f\uff1f<\/strong><br \/>\u5728\u4f7f\u7528matplotlib\u7ed8\u5236\u66f2\u7ebf\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u53c2\u6570\u81ea\u5b9a\u4e49\u989c\u8272\u548c\u6837\u5f0f\u3002<code>plt.plot()<\/code>\u51fd\u6570\u63a5\u53d7\u591a\u79cd\u53c2\u6570\uff0c\u4f8b\u5982\u989c\u8272\uff08\u5982&#39;blue&#39;, &#39;red&#39;\uff09\u548c\u7ebf\u578b\uff08\u5982&#39;&#8211;&#39;, &#39;-.&#39;\uff09\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>plt.plot(x, y1, color=&#39;green&#39;, linestyle=&#39;--&#39;)<\/code>\u53ef\u4ee5\u7ed8\u5236\u4e00\u6761\u7eff\u8272\u7684\u865a\u7ebf\u3002\u8fd9\u6837\u53ef\u4ee5\u4f7f\u66f2\u7ebf\u66f4\u52a0\u7f8e\u89c2\u548c\u6613\u4e8e\u533a\u5206\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u540c\u4e00\u753b\u677f\u4e0a\u53e0\u52a0\u591a\u6761\u66f2\u7ebf\uff1f<\/strong><br \/>\u8981\u5728\u540c\u4e00\u753b\u677f\u4e0a\u53e0\u52a0\u591a\u6761\u66f2\u7ebf\uff0c\u53ea\u9700\u591a\u6b21\u8c03\u7528<code>plt.plot()<\/code>\u51fd\u6570\u3002\u6bcf\u6b21\u8c03\u7528\u65f6\u4f20\u5165\u4e0d\u540c\u7684y\u503c\uff0c\u8fd9\u6837\u6240\u6709\u66f2\u7ebf\u5c06\u663e\u793a\u5728\u540c\u4e00\u4e2a\u5750\u6807\u8f74\u4e0a\u3002\u53ef\u4ee5\u4f7f\u7528<code>plt.legend()<\/code>\u4e3a\u6bcf\u6761\u66f2\u7ebf\u6dfb\u52a0\u56fe\u4f8b\uff0c\u4ee5\u4fbf\u4e8e\u8bc6\u522b\u3002\u786e\u4fdd\u5728\u7ed8\u5236\u5b8c\u6240\u6709\u66f2\u7ebf\u4e4b\u540e\u518d\u8c03\u7528<code>plt.show()<\/code>\u6765\u663e\u793a\u6700\u7ec8\u7684\u56fe\u5f62\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5728\u4e00\u4e2a\u753b\u677f\u4e0a\u7ed8\u5236\u4e24\u6761\u66f2\u7ebf\u3002\u6700\u5e38\u7528\u7684\u65b9\u5f0f\u662f\u4f7f\u7528Matplotlib\u5e93\u3002\u901a\u8fc7Ma [&hellip;]","protected":false},"author":3,"featured_media":1145077,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1145070"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1145070"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1145070\/revisions"}],"predecessor-version":[{"id":1145082,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1145070\/revisions\/1145082"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1145077"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1145070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1145070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1145070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}