{"id":935032,"date":"2024-12-26T18:44:44","date_gmt":"2024-12-26T10:44:44","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/935032.html"},"modified":"2024-12-26T18:44:47","modified_gmt":"2024-12-26T10:44:47","slug":"python%e5%a6%82%e4%bd%95%e7%94%bb%e5%87%bd%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/935032.html","title":{"rendered":"python\u5982\u4f55\u753b\u51fd\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25071816\/8ef08e63-fe86-400d-a88f-6a4e3bb405db.webp\" alt=\"python\u5982\u4f55\u753b\u51fd\u6570\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u753b\u51fd\u6570\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528matplotlib\u5e93\u6765\u7ed8\u5236\u51fd\u6570\u56fe\u50cf\u3001\u4f7f\u7528seaborn\u5e93\u8fdb\u884c\u9ad8\u7ea7\u7ed8\u56fe\u3001\u901a\u8fc7plotly\u5e93\u521b\u5efa\u4ea4\u4e92\u5f0f\u56fe\u5f62\u3002<\/strong> \u5176\u4e2d\uff0c<strong>matplotlib<\/strong> \u662f\u6700\u5e38\u7528\u4e14\u529f\u80fd\u5f3a\u5927\u7684\u7ed8\u56fe\u5e93\u4e4b\u4e00\u3002\u5b83\u5141\u8bb8\u7528\u6237\u521b\u5efa\u9ad8\u8d28\u91cf\u7684\u56fe\u5f62\uff0c\u4ece\u7b80\u5355\u7684\u7ebf\u56fe\u5230\u590d\u6742\u7684\u591a\u7ef4\u56fe\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u6765\u7ed8\u5236\u51fd\u6570\u56fe\u50cf\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528MATPLOTLIB\u7ed8\u5236\u51fd\u6570<\/p>\n<\/p>\n<p><p>Matplotlib\u662fPython\u4e2d\u6700\u53d7\u6b22\u8fce\u7684\u7ed8\u56fe\u5e93\u4e4b\u4e00\uff0c\u975e\u5e38\u9002\u5408\u7ed8\u5236\u9759\u6001\u56fe\u50cf\u3002\u5b83\u7684pyplot\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u7ec4\u4e0eMATLAB\u7c7b\u4f3c\u7684\u547d\u4ee4\u98ce\u683c\u51fd\u6570\uff0c\u4f7f\u7ed8\u56fe\u53d8\u5f97\u7b80\u5355\u800c\u76f4\u89c2\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5\u548c\u5bfc\u5165Matplotlib<\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u7684Python\u73af\u5883\u4e2d\u5b89\u88c5\u4e86matplotlib\u5e93\u3002\u5982\u679c\u6ca1\u6709\u5b89\u88c5\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install matplotlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5728\u4f60\u7684Python\u811a\u672c\u4e2d\u5bfc\u5165\u76f8\u5173\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>import numpy as np<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u7ed8\u5236\u7b80\u5355\u51fd\u6570<\/li>\n<\/ol>\n<p><p>\u7ed8\u5236\u4e00\u4e2a\u7b80\u5355\u7684\u51fd\u6570\uff0c\u6bd4\u5982y = sin(x)\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49x\u7684\u8303\u56f4<\/p>\n<p>x = np.linspace(0, 10, 100)<\/p>\n<h2><strong>\u5b9a\u4e49y\u4e3ax\u7684\u51fd\u6570<\/strong><\/h2>\n<p>y = np.sin(x)<\/p>\n<h2><strong>\u521b\u5efa\u56fe\u5f62<\/strong><\/h2>\n<p>plt.plot(x, y)<\/p>\n<h2><strong>\u6dfb\u52a0\u6807\u9898\u548c\u6807\u7b7e<\/strong><\/h2>\n<p>plt.title(&#39;y = sin(x)&#39;)<\/p>\n<p>plt.xlabel(&#39;x&#39;)<\/p>\n<p>plt.ylabel(&#39;y&#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\u4f8b\u5b50\u4e2d\uff0c<code>np.linspace<\/code>\u7528\u4e8e\u751f\u6210\u4ece0\u523010\u7684100\u4e2a\u7b49\u95f4\u9694\u7684\u6570\u5b57\u3002<code>plt.plot<\/code>\u7528\u4e8e\u521b\u5efa\u56fe\u5f62\uff0c\u800c<code>plt.show<\/code>\u7528\u4e8e\u663e\u793a\u56fe\u5f62\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li>\u81ea\u5b9a\u4e49\u56fe\u5f62<\/li>\n<\/ol>\n<p><p>Matplotlib\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u81ea\u5b9a\u4e49\u9009\u9879\uff0c\u53ef\u4ee5\u8c03\u6574\u56fe\u5f62\u7684\u5404\u4e2a\u65b9\u9762\uff1a<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u7ebf\u6761\u6837\u5f0f\u548c\u989c\u8272<\/strong>\uff1a\u53ef\u4ee5\u901a\u8fc7\u4f20\u9012\u989d\u5916\u7684\u53c2\u6570\u7ed9<code>plot<\/code>\u51fd\u6570\u6765\u6539\u53d8\u7ebf\u6761\u7684\u6837\u5f0f\u548c\u989c\u8272\u3002\u4f8b\u5982\uff0c<code>plt.plot(x, y, &#39;r--&#39;)<\/code>\u4f1a\u5c06\u7ebf\u6761\u53d8\u6210\u7ea2\u8272\u865a\u7ebf\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u56fe\u4f8b<\/strong>\uff1a\u53ef\u4ee5\u4f7f\u7528<code>plt.legend<\/code>\u6dfb\u52a0\u56fe\u4f8b\uff0c\u5e2e\u52a9\u8bc6\u522b\u56fe\u4e2d\u7684\u4e0d\u540c\u7ebf\u6761\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f51\u683c<\/strong>\uff1a\u53ef\u4ee5\u4f7f\u7528<code>plt.grid<\/code>\u6dfb\u52a0\u7f51\u683c\u7ebf\uff0c\u589e\u52a0\u56fe\u5f62\u7684\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">plt.plot(x, y, &#39;r--&#39;, label=&#39;sin(x)&#39;)<\/p>\n<p>plt.legend()<\/p>\n<p>plt.grid(True)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528SEABORN\u8fdb\u884c\u9ad8\u7ea7\u7ed8\u56fe<\/p>\n<\/p>\n<p><p>Seaborn\u662f\u57fa\u4e8ematplotlib\u7684\u9ad8\u7ea7\u7ed8\u56fe\u5e93\uff0c\u63d0\u4f9b\u4e86\u66f4\u7f8e\u89c2\u7684\u9ed8\u8ba4\u6837\u5f0f\u548c\u66f4\u7b80\u5355\u7684\u7ed8\u56fe\u63a5\u53e3\u3002\u5b83\u975e\u5e38\u9002\u5408\u7ed8\u5236\u7edf\u8ba1\u56fe\u8868\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5\u548c\u5bfc\u5165Seaborn<\/li>\n<\/ol>\n<p><p>\u540c\u6837\u9700\u8981\u786e\u4fdd\u5b89\u88c5\u4e86seaborn\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install seaborn<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u5728\u811a\u672c\u4e2d\u5bfc\u5165\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import seaborn as sns<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528Seaborn\u7ed8\u56fe<\/li>\n<\/ol>\n<p><p>Seaborn\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u7ed8\u5236\u51fa\u7f8e\u89c2\u7684\u7edf\u8ba1\u56fe\u8868\u3002\u4f8b\u5982\uff0c\u7ed8\u5236\u4e00\u4e2a\u5e26\u6709\u7f6e\u4fe1\u533a\u95f4\u7684\u7ebf\u56fe\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u793a\u4f8b\u6570\u636e<\/p>\n<p>data = np.random.randn(100)<\/p>\n<h2><strong>\u4f7f\u7528seaborn\u7ed8\u5236<\/strong><\/h2>\n<p>sns.lineplot(data=data)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>Seaborn\u7684\u4f18\u52bf<\/li>\n<\/ol>\n<p><p>\u4e0eMatplotlib\u76f8\u6bd4\uff0cSeaborn\u63d0\u4f9b\u4e86\u4e00\u4e9b\u989d\u5916\u7684\u529f\u80fd\uff1a<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u9ed8\u8ba4\u6837\u5f0f\u66f4\u7f8e\u89c2<\/strong>\uff1aSeaborn\u7684\u9ed8\u8ba4\u6837\u5f0f\u6bd4Matplotlib\u66f4\u73b0\u4ee3\u548c\u7f8e\u89c2\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5185\u7f6e\u7edf\u8ba1\u529f\u80fd<\/strong>\uff1aSeaborn\u53ef\u4ee5\u76f4\u63a5\u7ed8\u5236\u51fa\u5e26\u6709\u7f6e\u4fe1\u533a\u95f4\u7684\u56fe\u5f62\uff0c\u9002\u5408\u7528\u4e8e\u6570\u636e\u5206\u6790\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u591a\u56fe\u5408\u4e00<\/strong>\uff1aSeaborn\u53ef\u4ee5\u8f7b\u677e\u7ed8\u5236\u591a\u79cd\u7c7b\u578b\u7684\u56fe\u5f62\uff0c\u5e76\u5c06\u5b83\u4eec\u7ec4\u5408\u5728\u4e00\u8d77\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><p>\u4e09\u3001\u4f7f\u7528PLOTLY\u521b\u5efa\u4ea4\u4e92\u5f0f\u56fe\u5f62<\/p>\n<\/p>\n<p><p>Plotly\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u7ed8\u56fe\u5e93\uff0c\u652f\u6301\u521b\u5efa\u4ea4\u4e92\u5f0f\u56fe\u5f62\uff0c\u8fd9\u5bf9\u4e8e\u9700\u8981\u7528\u6237\u4ea4\u4e92\u7684\u5e94\u7528\u7a0b\u5e8f\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5\u548c\u5bfc\u5165Plotly<\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u5b89\u88c5plotly\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install plotly<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u5728\u811a\u672c\u4e2d\u5bfc\u5165\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import plotly.graph_objs as go<\/p>\n<p>import plotly.express as px<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u521b\u5efa\u4ea4\u4e92\u5f0f\u56fe\u5f62<\/li>\n<\/ol>\n<p><p>\u4f7f\u7528Plotly\u521b\u5efa\u4ea4\u4e92\u5f0f\u56fe\u5f62\u975e\u5e38\u7b80\u5355\u3002\u4f8b\u5982\uff0c\u7ed8\u5236\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u7684\u6b63\u5f26\u51fd\u6570\u56fe\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">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>y = np.sin(x)<\/p>\n<h2><strong>\u521b\u5efa\u56fe\u5f62\u5bf9\u8c61<\/strong><\/h2>\n<p>fig = go.Figure()<\/p>\n<h2><strong>\u6dfb\u52a0\u6570\u636e\u5230\u56fe\u5f62<\/strong><\/h2>\n<p>fig.add_trace(go.Scatter(x=x, y=y, mode=&#39;lines&#39;, name=&#39;sin(x)&#39;))<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>fig.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>Plotly\u7684\u4f18\u52bf<\/li>\n<\/ol>\n<ul>\n<li>\n<p><strong>\u4ea4\u4e92\u6027<\/strong>\uff1aPlotly\u751f\u6210\u7684\u56fe\u5f62\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u4ea4\u4e92\uff0c\u7528\u6237\u53ef\u4ee5\u7f29\u653e\u3001\u5e73\u79fb\u548c\u60ac\u505c\u67e5\u770b\u6570\u636e\u70b9\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u96c6\u6210\u6027<\/strong>\uff1aPlotly\u53ef\u4ee5\u4e0eDash\u96c6\u6210\uff0c\u8f7b\u677e\u521b\u5efa\u4ea4\u4e92\u5f0f\u6570\u636e\u5206\u6790\u5e94\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u591a\u79cd\u8f93\u51fa\u683c\u5f0f<\/strong>\uff1aPlotly\u7684\u56fe\u5f62\u53ef\u4ee5\u5bfc\u51fa\u4e3aHTML\u6587\u4ef6\uff0c\u4e5f\u53ef\u4ee5\u5d4c\u5165\u5230\u7f51\u9875\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><p>\u56db\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7ed8\u56fe\u5e93\uff0c\u4f7f\u5f97\u5728\u6570\u636e\u5206\u6790\u548c\u5c55\u793a\u4e2d\u7ed8\u5236\u51fd\u6570\u56fe\u5f62\u53d8\u5f97\u7b80\u5355\u800c\u9ad8\u6548\u3002\u65e0\u8bba\u662fMatplotlib\u7684\u5f3a\u5927\u548c\u7075\u6d3b\uff0cSeaborn\u7684\u7f8e\u89c2\u548c\u65b9\u4fbf\uff0c\u8fd8\u662fPlotly\u7684\u4ea4\u4e92\u6027\uff0c\u90fd\u4e3a\u4e0d\u540c\u9700\u6c42\u7684\u7528\u6237\u63d0\u4f9b\u4e86\u5408\u9002\u7684\u5de5\u5177\u3002\u9009\u62e9\u5408\u9002\u7684\u5e93\uff0c\u4e0d\u4ec5\u80fd\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\uff0c\u8fd8\u80fd\u5e2e\u52a9\u66f4\u597d\u5730\u5c55\u793a\u548c\u7406\u89e3\u6570\u636e\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u7ed8\u5236\u6570\u5b66\u51fd\u6570\u56fe\u50cf\uff1f<\/strong><br \/>Python\u63d0\u4f9b\u4e86\u591a\u4e2a\u5e93\u7528\u4e8e\u7ed8\u5236\u51fd\u6570\u56fe\u50cf\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u7684\u662fMatplotlib\u548cNumPy\u3002\u4f7f\u7528NumPy\u751f\u6210\u51fd\u6570\u7684\u6570\u636e\u70b9\uff0c\u7136\u540e\u5229\u7528Matplotlib\u5c06\u8fd9\u4e9b\u6570\u636e\u70b9\u7ed8\u5236\u6210\u56fe\u5f62\u3002\u53ea\u9700\u5b89\u88c5\u8fd9\u4e24\u4e2a\u5e93\uff0c\u5e76\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u5373\u53ef\u7ed8\u5236\u7b80\u5355\u7684\u6570\u5b66\u51fd\u6570\uff1a<\/p>\n<pre><code class=\"language-python\">import numpy as np\nimport matplotlib.pyplot as plt\n\nx = np.linspace(-10, 10, 400)  # \u751f\u6210\u4ece-10\u523010\u7684400\u4e2a\u70b9\ny = np.sin(x)                   # \u8ba1\u7b97\u6bcf\u4e2ax\u503c\u5bf9\u5e94\u7684y\u503c\nplt.plot(x, y)                  # \u7ed8\u5236\u51fd\u6570\u56fe\u50cf\nplt.title(&#39;Sine Function&#39;)      # \u6dfb\u52a0\u6807\u9898\nplt.xlabel(&#39;X-axis&#39;)            # \u6dfb\u52a0X\u8f74\u6807\u7b7e\nplt.ylabel(&#39;Y-axis&#39;)            # \u6dfb\u52a0Y\u8f74\u6807\u7b7e\nplt.grid()                      # \u6dfb\u52a0\u7f51\u683c\nplt.show()                      # \u663e\u793a\u56fe\u50cf\n<\/code><\/pre>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u81ea\u5b9a\u4e49\u51fd\u6570\u56fe\u7684\u6837\u5f0f\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7Matplotlib\u5e93\u81ea\u5b9a\u4e49\u51fd\u6570\u56fe\u7684\u6837\u5f0f\uff0c\u5305\u62ec\u7ebf\u6761\u989c\u8272\u3001\u7ebf\u6761\u7c7b\u578b\u3001\u6807\u8bb0\u6837\u5f0f\u7b49\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>plt.plot()<\/code>\u51fd\u6570\u7684\u53c2\u6570\u6765\u8bbe\u7f6e\u7ebf\u6761\u7684\u989c\u8272\u548c\u6837\u5f0f\uff1a<\/p>\n<pre><code class=\"language-python\">plt.plot(x, y, color=&#39;red&#39;, linestyle=&#39;--&#39;, marker=&#39;o&#39;)  # \u7ea2\u8272\u865a\u7ebf\uff0c\u5e26\u5706\u70b9\u6807\u8bb0\n<\/code><\/pre>\n<p>\u6b64\u5916\uff0c\u53ef\u4ee5\u6dfb\u52a0\u56fe\u4f8b\u3001\u80cc\u666f\u8272\u548c\u6807\u9898\u7b49\u5143\u7d20\uff0c\u4f7f\u56fe\u5f62\u66f4\u52a0\u7f8e\u89c2\u548c\u6613\u4e8e\u7406\u89e3\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u7ed8\u5236\u591a\u6761\u51fd\u6570\u66f2\u7ebf\uff1f<\/strong><br \/>\u5728\u540c\u4e00\u56fe\u8868\u4e2d\u7ed8\u5236\u591a\u6761\u51fd\u6570\u66f2\u7ebf\u975e\u5e38\u7b80\u5355\u3002\u53ea\u9700\u5728\u540c\u4e00\u5750\u6807\u7cfb\u4e2d\u591a\u6b21\u8c03\u7528<code>plt.plot()<\/code>\uff0c\u5e76\u4e3a\u6bcf\u6761\u66f2\u7ebf\u63d0\u4f9b\u4e0d\u540c\u7684\u6570\u636e\u548c\u6837\u5f0f\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">y2 = np.cos(x)  # \u8ba1\u7b97\u4f59\u5f26\u51fd\u6570\nplt.plot(x, y, label=&#39;Sine&#39;)  # \u7ed8\u5236\u6b63\u5f26\u51fd\u6570\nplt.plot(x, y2, label=&#39;Cosine&#39;)  # \u7ed8\u5236\u4f59\u5f26\u51fd\u6570\nplt.legend()  # \u663e\u793a\u56fe\u4f8b\n<\/code><\/pre>\n<p>\u8fd9\u6837\u53ef\u4ee5\u8f7b\u677e\u6bd4\u8f83\u4e0d\u540c\u51fd\u6570\u7684\u884c\u4e3a\u548c\u7279\u5f81\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u753b\u51fd\u6570\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528matplotlib\u5e93\u6765\u7ed8\u5236\u51fd\u6570\u56fe\u50cf\u3001\u4f7f\u7528seaborn\u5e93\u8fdb\u884c\u9ad8\u7ea7 [&hellip;]","protected":false},"author":3,"featured_media":935035,"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\/935032"}],"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=935032"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/935032\/revisions"}],"predecessor-version":[{"id":935037,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/935032\/revisions\/935037"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/935035"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=935032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=935032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=935032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}