{"id":1031800,"date":"2024-12-31T11:28:24","date_gmt":"2024-12-31T03:28:24","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1031800.html"},"modified":"2024-12-31T11:28:26","modified_gmt":"2024-12-31T03:28:26","slug":"python%e5%b0%8f%e6%8f%90%e7%90%b4%e5%9b%be%e5%a6%82%e4%bd%95%e8%ae%be%e7%bd%ae%e9%a2%9c%e8%89%b2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1031800.html","title":{"rendered":"python\u5c0f\u63d0\u7434\u56fe\u5982\u4f55\u8bbe\u7f6e\u989c\u8272"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/088eec3e-77fd-475c-8513-aa2750293a65.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5c0f\u63d0\u7434\u56fe\u5982\u4f55\u8bbe\u7f6e\u989c\u8272\" \/><\/p>\n<p><p> <strong>Python\u5c0f\u63d0\u7434\u56fe\u8bbe\u7f6e\u989c\u8272\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528seaborn\u5e93\u3001\u8bbe\u7f6e\u989c\u8272\u53c2\u6570\u3001\u4f7f\u7528\u8c03\u8272\u677f<\/strong><\/p>\n<\/p>\n<p><p>Python\u4e2d\u7684\u5c0f\u63d0\u7434\u56fe\u662f\u4e00\u79cd\u7ed3\u5408\u4e86\u7bb1\u7ebf\u56fe\u548c\u6838\u5bc6\u5ea6\u4f30\u8ba1\u56fe\u7684\u53ef\u89c6\u5316\u5de5\u5177\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u5c55\u793a\u6570\u636e\u5206\u5e03\u7684\u5f62\u6001\u3002\u5728\u7ed8\u5236\u5c0f\u63d0\u7434\u56fe\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u989c\u8272\u6765\u66f4\u597d\u5730\u533a\u5206\u4e0d\u540c\u7684\u7c7b\u522b\u6216\u53d8\u91cf\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528seaborn\u5e93\u7ed8\u5236\u5c0f\u63d0\u7434\u56fe\u5e76\u8bbe\u7f6e\u989c\u8272\uff0c\u5305\u62ec\u4f7f\u7528\u989c\u8272\u53c2\u6570\u548c\u8c03\u8272\u677f\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u5b89\u88c5\u548c\u5bfc\u5165\u5e93<\/h2>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u7ed8\u5236\u5c0f\u63d0\u7434\u56fe\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u786e\u4fdd\u5b89\u88c5\u5e76\u5bfc\u5165\u6240\u9700\u7684\u5e93\uff0c\u5305\u62ecseaborn\u548cmatplotlib\u3002\u4ee5\u4e0b\u662f\u5b89\u88c5\u548c\u5bfc\u5165\u8fd9\u4e9b\u5e93\u7684\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b89\u88c5seaborn\u548cmatplotlib<\/p>\n<p>!pip install seaborn matplotlib<\/p>\n<h2><strong>\u5bfc\u5165\u6240\u9700\u7684\u5e93<\/strong><\/h2>\n<p>import seaborn as sns<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e8c\u3001\u52a0\u8f7d\u793a\u4f8b\u6570\u636e<\/h2>\n<\/p>\n<p><p>\u4e3a\u4e86\u6f14\u793a\u5982\u4f55\u8bbe\u7f6e\u5c0f\u63d0\u7434\u56fe\u7684\u989c\u8272\uff0c\u6211\u4eec\u5c06\u4f7f\u7528seaborn\u81ea\u5e26\u7684\u793a\u4f8b\u6570\u636e\u96c6\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u201ctips\u201d\u6570\u636e\u96c6\uff0c\u5b83\u5305\u542b\u9910\u9986\u5c0f\u8d39\u7684\u6570\u636e\u3002\u4ee5\u4e0b\u662f\u52a0\u8f7d\u6570\u636e\u96c6\u7684\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u52a0\u8f7d\u793a\u4f8b\u6570\u636e\u96c6<\/p>\n<p>tips = sns.load_dataset(&quot;tips&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e09\u3001\u7ed8\u5236\u57fa\u672c\u5c0f\u63d0\u7434\u56fe<\/h2>\n<\/p>\n<p><p>\u5728\u8bbe\u7f6e\u989c\u8272\u4e4b\u524d\uff0c\u6211\u4eec\u5148\u7ed8\u5236\u4e00\u4e2a\u57fa\u672c\u7684\u5c0f\u63d0\u7434\u56fe\u3002\u4ee5\u4e0b\u4ee3\u7801\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528seaborn\u5e93\u7ed8\u5236\u5c0f\u63d0\u7434\u56fe\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u7ed8\u5236\u57fa\u672c\u5c0f\u63d0\u7434\u56fe<\/p>\n<p>sns.violinplot(x=&quot;day&quot;, y=&quot;total_bill&quot;, data=tips)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u56db\u3001\u8bbe\u7f6e\u5c0f\u63d0\u7434\u56fe\u7684\u989c\u8272<\/h2>\n<\/p>\n<p><h3>1\u3001\u4f7f\u7528\u989c\u8272\u53c2\u6570\u8bbe\u7f6e\u989c\u8272<\/h3>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>violinplot<\/code>\u51fd\u6570\u4e2d\u7684<code>palette<\/code>\u53c2\u6570\u6765\u8bbe\u7f6e\u5c0f\u63d0\u7434\u56fe\u7684\u989c\u8272\u3002<code>palette<\/code>\u53c2\u6570\u63a5\u53d7\u591a\u79cd\u7c7b\u578b\u7684\u8f93\u5165\uff0c\u5305\u62ec\u5355\u4e00\u989c\u8272\u3001\u989c\u8272\u5217\u8868\u548c\u8c03\u8272\u677f\u540d\u79f0\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b1\uff1a\u4f7f\u7528\u5355\u4e00\u989c\u8272<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528\u5355\u4e00\u989c\u8272\u8bbe\u7f6e\u5c0f\u63d0\u7434\u56fe<\/p>\n<p>sns.violinplot(x=&quot;day&quot;, y=&quot;total_bill&quot;, data=tips, color=&quot;skyblue&quot;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u793a\u4f8b2\uff1a\u4f7f\u7528\u989c\u8272\u5217\u8868<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528\u989c\u8272\u5217\u8868\u8bbe\u7f6e\u5c0f\u63d0\u7434\u56fe<\/p>\n<p>colors = [&quot;skyblue&quot;, &quot;lightgreen&quot;, &quot;coral&quot;, &quot;lightpink&quot;]<\/p>\n<p>sns.violinplot(x=&quot;day&quot;, y=&quot;total_bill&quot;, data=tips, palette=colors)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u793a\u4f8b3\uff1a\u4f7f\u7528\u8c03\u8272\u677f\u540d\u79f0<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528\u8c03\u8272\u677f\u540d\u79f0\u8bbe\u7f6e\u5c0f\u63d0\u7434\u56fe<\/p>\n<p>sns.violinplot(x=&quot;day&quot;, y=&quot;total_bill&quot;, data=tips, palette=&quot;muted&quot;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u4f7f\u7528\u8c03\u8272\u677f\u51fd\u6570\u8bbe\u7f6e\u989c\u8272<\/h3>\n<\/p>\n<p><p>seaborn\u63d0\u4f9b\u4e86\u591a\u79cd\u8c03\u8272\u677f\u51fd\u6570\uff0c\u53ef\u4ee5\u751f\u6210\u4e0d\u540c\u98ce\u683c\u548c\u989c\u8272\u6570\u91cf\u7684\u8c03\u8272\u677f\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>color_palette<\/code>\u51fd\u6570\u6765\u521b\u5efa\u81ea\u5b9a\u4e49\u8c03\u8272\u677f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b1\uff1a\u4f7f\u7528\u81ea\u5b9a\u4e49\u8c03\u8272\u677f<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528\u81ea\u5b9a\u4e49\u8c03\u8272\u677f\u8bbe\u7f6e\u5c0f\u63d0\u7434\u56fe<\/p>\n<p>custom_palette = sns.color_palette([&quot;#3498db&quot;, &quot;#2ecc71&quot;, &quot;#e74c3c&quot;, &quot;#9b59b6&quot;])<\/p>\n<p>sns.violinplot(x=&quot;day&quot;, y=&quot;total_bill&quot;, data=tips, palette=custom_palette)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u793a\u4f8b2\uff1a\u4f7f\u7528\u9884\u5b9a\u4e49\u8c03\u8272\u677f<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528\u9884\u5b9a\u4e49\u8c03\u8272\u677f\u8bbe\u7f6e\u5c0f\u63d0\u7434\u56fe<\/p>\n<p>sns.violinplot(x=&quot;day&quot;, y=&quot;total_bill&quot;, data=tips, palette=&quot;Set2&quot;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e94\u3001\u8c03\u6574\u5c0f\u63d0\u7434\u56fe\u7684\u5176\u4ed6\u53c2\u6570<\/h2>\n<\/p>\n<p><p>\u9664\u4e86\u8bbe\u7f6e\u989c\u8272\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u8c03\u6574\u5c0f\u63d0\u7434\u56fe\u7684\u5176\u4ed6\u53c2\u6570\uff0c\u4ee5\u8fdb\u4e00\u6b65\u7f8e\u5316\u56fe\u8868\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u8bbe\u7f6e\u5c0f\u63d0\u7434\u7684\u5185\u5d4c\u56fe\u5f62\u3001\u5bbd\u5ea6\u3001\u7ebf\u6761\u989c\u8272\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><h3>1\u3001\u8bbe\u7f6e\u5185\u5d4c\u56fe\u5f62<\/h3>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>inner<\/code>\u53c2\u6570\u6765\u8bbe\u7f6e\u5c0f\u63d0\u7434\u56fe\u7684\u5185\u5d4c\u56fe\u5f62\u3002\u5185\u5d4c\u56fe\u5f62\u53ef\u4ee5\u662f\u201cbox\u201d\u3001\u201cquartile\u201d\u3001\u201cpoint\u201d\u6216\u201cstick\u201d\u3002\u4ee5\u4e0b\u662f\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8bbe\u7f6e\u5185\u5d4c\u56fe\u5f62\u4e3a\u7bb1\u7ebf\u56fe<\/p>\n<p>sns.violinplot(x=&quot;day&quot;, y=&quot;total_bill&quot;, data=tips, palette=&quot;Set2&quot;, inner=&quot;box&quot;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u8bbe\u7f6e\u5c0f\u63d0\u7434\u7684\u5bbd\u5ea6<\/h3>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>width<\/code>\u53c2\u6570\u6765\u8bbe\u7f6e\u5c0f\u63d0\u7434\u56fe\u7684\u5bbd\u5ea6\u3002\u4ee5\u4e0b\u662f\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8bbe\u7f6e\u5c0f\u63d0\u7434\u7684\u5bbd\u5ea6<\/p>\n<p>sns.violinplot(x=&quot;day&quot;, y=&quot;total_bill&quot;, data=tips, palette=&quot;Set2&quot;, width=0.8)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3\u3001\u8bbe\u7f6e\u7ebf\u6761\u989c\u8272<\/h3>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>linewidth<\/code>\u548c<code>edgecolor<\/code>\u53c2\u6570\u6765\u8bbe\u7f6e\u5c0f\u63d0\u7434\u56fe\u7684\u7ebf\u6761\u989c\u8272\u548c\u5bbd\u5ea6\u3002\u4ee5\u4e0b\u662f\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8bbe\u7f6e\u7ebf\u6761\u989c\u8272\u548c\u5bbd\u5ea6<\/p>\n<p>sns.violinplot(x=&quot;day&quot;, y=&quot;total_bill&quot;, data=tips, palette=&quot;Set2&quot;, linewidth=2, edgecolor=&quot;gray&quot;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u516d\u3001\u7ed3\u5408\u5176\u4ed6\u56fe\u5f62<\/h2>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u5c0f\u63d0\u7434\u56fe\u4e0e\u5176\u4ed6\u56fe\u5f62\u7ed3\u5408\u4f7f\u7528\uff0c\u4ee5\u66f4\u5168\u9762\u5730\u5c55\u793a\u6570\u636e\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u5c0f\u63d0\u7434\u56fe\u4e0e\u7bb1\u7ebf\u56fe\u7ed3\u5408\uff0c\u6216\u8005\u5728\u5c0f\u63d0\u7434\u56fe\u4e0a\u6dfb\u52a0\u6563\u70b9\u56fe\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><h3>1\u3001\u7ed3\u5408\u7bb1\u7ebf\u56fe<\/h3>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>ax<\/code>\u53c2\u6570\u5c06\u5c0f\u63d0\u7434\u56fe\u548c\u7bb1\u7ebf\u56fe\u7ed8\u5236\u5728\u540c\u4e00\u5f20\u56fe\u8868\u4e0a\u3002\u4ee5\u4e0b\u662f\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u7ed8\u5236\u5c0f\u63d0\u7434\u56fe<\/p>\n<p>ax = sns.violinplot(x=&quot;day&quot;, y=&quot;total_bill&quot;, data=tips, palette=&quot;Set2&quot;, inner=None)<\/p>\n<h2><strong>\u7ed8\u5236\u7bb1\u7ebf\u56fe<\/strong><\/h2>\n<p>sns.boxplot(x=&quot;day&quot;, y=&quot;total_bill&quot;, data=tips, width=0.2, ax=ax, palette=&quot;Set2&quot;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u5728\u5c0f\u63d0\u7434\u56fe\u4e0a\u6dfb\u52a0\u6563\u70b9\u56fe<\/h3>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>stripplot<\/code>\u51fd\u6570\u5728\u5c0f\u63d0\u7434\u56fe\u4e0a\u6dfb\u52a0\u6563\u70b9\u56fe\u3002\u4ee5\u4e0b\u662f\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u7ed8\u5236\u5c0f\u63d0\u7434\u56fe<\/p>\n<p>sns.violinplot(x=&quot;day&quot;, y=&quot;total_bill&quot;, data=tips, palette=&quot;Set2&quot;, inner=None)<\/p>\n<h2><strong>\u6dfb\u52a0\u6563\u70b9\u56fe<\/strong><\/h2>\n<p>sns.stripplot(x=&quot;day&quot;, y=&quot;total_bill&quot;, data=tips, color=&quot;black&quot;, size=4, jitter=True)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e03\u3001\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528seaborn\u5e93\u7ed8\u5236\u5c0f\u63d0\u7434\u56fe\u5e76\u8bbe\u7f6e\u989c\u8272\uff0c\u5305\u62ec\u4f7f\u7528\u989c\u8272\u53c2\u6570\u548c\u8c03\u8272\u677f\u7684\u65b9\u6cd5\u3002\u6b64\u5916\uff0c\u6211\u4eec\u8fd8\u5c55\u793a\u4e86\u5982\u4f55\u8c03\u6574\u5c0f\u63d0\u7434\u56fe\u7684\u5176\u4ed6\u53c2\u6570\u4ee5\u53ca\u5c06\u5c0f\u63d0\u7434\u56fe\u4e0e\u5176\u4ed6\u56fe\u5f62\u7ed3\u5408\u4f7f\u7528\u3002\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u521b\u5efa\u66f4\u52a0\u7f8e\u89c2\u548c\u6613\u4e8e\u7406\u89e3\u7684\u5c0f\u63d0\u7434\u56fe\uff0c\u4ece\u800c\u66f4\u597d\u5730\u5c55\u793a\u6570\u636e\u5206\u5e03\u7684\u5f62\u6001\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u60a8\u5728\u6570\u636e\u53ef\u89c6\u5316\u65b9\u9762\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4e3a\u5c0f\u63d0\u7434\u56fe\u9009\u62e9\u4e0d\u540c\u7684\u914d\u8272\u65b9\u6848\uff1f<\/strong><br \/>\u5728Python\u4e2d\u4f7f\u7528\u5c0f\u63d0\u7434\u56fe\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<code>seaborn<\/code>\u548c<code>matplotlib<\/code>\u5e93\u8f7b\u677e\u8bbe\u7f6e\u914d\u8272\u65b9\u6848\u3002\u53ef\u4ee5\u4f7f\u7528<code>palette<\/code>\u53c2\u6570\u6765\u9009\u62e9\u4e0d\u540c\u7684\u989c\u8272\u8c03\u8272\u677f\uff0c\u4f8b\u5982<code>&#39;viridis&#39;<\/code>\u3001<code>&#39;plasma&#39;<\/code>\u6216\u81ea\u5b9a\u4e49\u989c\u8272\u5217\u8868\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u6839\u636e\u6570\u636e\u7684\u7279\u70b9\u548c\u53ef\u89c6\u5316\u7684\u9700\u6c42\u8c03\u6574\u5c0f\u63d0\u7434\u56fe\u7684\u989c\u8272\uff0c\u4f7f\u5176\u66f4\u52a0\u7f8e\u89c2\u548c\u6613\u4e8e\u7406\u89e3\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u5c0f\u63d0\u7434\u56fe\u4e2d\u4e3a\u4e0d\u540c\u7684\u6570\u636e\u7c7b\u522b\u8bbe\u7f6e\u4e0d\u540c\u7684\u989c\u8272\uff1f<\/strong><br \/>\u5982\u679c\u9700\u8981\u4e3a\u4e0d\u540c\u7c7b\u522b\u7684\u6570\u636e\u8bbe\u7f6e\u4e0d\u540c\u7684\u989c\u8272\uff0c\u53ef\u4ee5\u5728\u7ed8\u5236\u5c0f\u63d0\u7434\u56fe\u65f6\u4f7f\u7528<code>hue<\/code>\u53c2\u6570\u3002\u901a\u8fc7\u6307\u5b9a\u6570\u636e\u4e2d\u7684\u5206\u7c7b\u53d8\u91cf\uff0c<code>seaborn<\/code>\u4f1a\u81ea\u52a8\u4e3a\u6bcf\u4e2a\u7c7b\u522b\u5206\u914d\u4e0d\u540c\u7684\u989c\u8272\u3002\u4e3a\u4e86\u786e\u4fdd\u989c\u8272\u7684\u6e05\u6670\u53ef\u8fa8\uff0c\u53ef\u4ee5\u9009\u62e9\u5408\u9002\u7684\u8c03\u8272\u677f\uff0c\u5e76\u901a\u8fc7<code>palette<\/code>\u53c2\u6570\u8fdb\u884c\u81ea\u5b9a\u4e49\u8bbe\u7f6e\u3002<\/p>\n<p><strong>\u5c0f\u63d0\u7434\u56fe\u4e2d\u5982\u4f55\u6dfb\u52a0\u900f\u660e\u5ea6\u6548\u679c\u4ee5\u589e\u5f3a\u53ef\u8bfb\u6027\uff1f<\/strong><br \/>\u5728\u521b\u5efa\u5c0f\u63d0\u7434\u56fe\u65f6\uff0c\u900f\u660e\u5ea6\u53ef\u4ee5\u901a\u8fc7<code>alpha<\/code>\u53c2\u6570\u8fdb\u884c\u8bbe\u7f6e\u3002\u5c06\u8be5\u53c2\u6570\u8bbe\u7f6e\u4e3a0\u52301\u4e4b\u95f4\u7684\u503c\uff0c\u53ef\u4ee5\u4f7f\u5c0f\u63d0\u7434\u56fe\u7684\u989c\u8272\u90e8\u5206\u53d8\u5f97\u900f\u660e\u3002\u8fd9\u5bf9\u4e8e\u91cd\u53e0\u6570\u636e\u70b9\u7684\u53ef\u89c6\u5316\u5c24\u5176\u6709\u6548\uff0c\u6709\u52a9\u4e8e\u89c2\u5bdf\u6570\u636e\u7684\u5206\u5e03\u548c\u5bc6\u5ea6\uff0c\u540c\u65f6\u907f\u514d\u56fe\u5f62\u663e\u5f97\u8fc7\u4e8e\u6742\u4e71\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5c0f\u63d0\u7434\u56fe\u8bbe\u7f6e\u989c\u8272\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528seaborn\u5e93\u3001\u8bbe\u7f6e\u989c\u8272\u53c2\u6570\u3001\u4f7f\u7528\u8c03\u8272\u677f Python\u4e2d\u7684\u5c0f\u63d0\u7434\u56fe [&hellip;]","protected":false},"author":3,"featured_media":1031805,"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\/1031800"}],"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=1031800"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1031800\/revisions"}],"predecessor-version":[{"id":1031806,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1031800\/revisions\/1031806"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1031805"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1031800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1031800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1031800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}