{"id":204,"date":"2019-06-20T23:03:11","date_gmt":"2019-06-20T15:03:11","guid":{"rendered":"https:\/\/kanghaov.com\/?p=204"},"modified":"2024-11-26T15:49:50","modified_gmt":"2024-11-26T07:49:50","slug":"seaborn-%e6%95%b0%e6%8d%ae%e5%8f%af%e8%a7%86%e5%8c%96%e5%9f%ba%e7%a1%80","status":"publish","type":"post","link":"https:\/\/nemo.cool\/204.html","title":{"rendered":"Seaborn \u6570\u636e\u53ef\u89c6\u5316\u57fa\u7840"},"content":{"rendered":"<p>[TOC]<\/p>\n<p>\u539f\u6587\u662f\u5b9e\u9a8c\u697c\u7684\u5728\u7ebf\u6559\u7a0b<a href=\"&lt;https:\/\/www.shiyanlou.com\/courses\/892&gt;\">Seaborn \u6570\u636e\u53ef\u89c6\u5316\u57fa\u7840\u8bfe\u7a0b<\/a>\u7684\u539f\u6587\u6574\u7406\uff0c\u6dfb\u52a0\u4e86\u6240\u6709\u7684\u7ed3\u679c\u56fe\uff0c\u4fbf\u4e8e\u5b66\u4e60\u3002<\/p>\n<h4>\u4ecb\u7ecd<\/h4>\n<p>Matplotlib \u662f\u652f\u6301 Python \u8bed\u8a00\u7684\u5f00\u6e90\u7ed8\u56fe\u5e93\uff0c\u56e0\u4e3a\u5176\u652f\u6301\u4e30\u5bcc\u7684\u7ed8\u56fe\u7c7b\u578b\u3001\u7b80\u5355\u7684\u7ed8\u56fe\u65b9\u5f0f\u4ee5\u53ca\u5b8c\u5584\u7684\u63a5\u53e3\u6587\u6863\uff0c\u6df1\u53d7 Python \u5de5\u7a0b\u5e08\u3001\u79d1\u7814\u5b66\u8005\u3001\u6570\u636e\u5de5\u7a0b\u5e08\u7b49\u5404\u7c7b\u4eba\u58eb\u7684\u559c\u6b22\u3002Seaborn \u662f\u4ee5 Matplotlib \u4e3a\u6838\u5fc3\u7684\u9ad8\u9636\u7ed8\u56fe\u5e93\uff0c\u65e0\u9700\u7ecf\u8fc7\u590d\u6742\u7684\u81ea\u5b9a\u4e49\u5373\u53ef\u7ed8\u5236\u51fa\u66f4\u52a0\u6f02\u4eae\u7684\u56fe\u5f62\uff0c\u975e\u5e38\u9002\u5408\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u63a2\u7d22\u3002<\/p>\n<h4>\u77e5\u8bc6\u70b9<\/h4>\n<ul>\n<li>\u5173\u8054\u56fe<\/li>\n<li>\u7c7b\u522b\u56fe<\/li>\n<li>\u5206\u5e03\u56fe<\/li>\n<li>\u56de\u5f52\u56fe<\/li>\n<li>\u77e9\u9635\u56fe<\/li>\n<li>\u7ec4\u5408\u56fe<\/li>\n<\/ul>\n<hr \/>\n<h3>Seaborn \u4ecb\u7ecd<\/h3>\n<p>Matplotlib \u5e94\u8be5\u662f\u57fa\u4e8e Python \u8bed\u8a00\u6700\u4f18\u79c0\u7684\u7ed8\u56fe\u5e93\u4e86\uff0c\u4f46\u662f\u5b83\u4e5f\u6709\u4e00\u4e2a\u5341\u5206\u4ee4\u4eba\u5934\u75bc\u7684\u95ee\u9898\uff0c\u90a3\u5c31\u662f\u592a\u8fc7\u4e8e\u590d\u6742\u4e86\u30023000 \u591a\u9875\u7684\u5b98\u65b9\u6587\u6863\uff0c\u4e0a\u5343\u4e2a\u65b9\u6cd5\u4ee5\u53ca\u6570\u4e07\u4e2a\u53c2\u6570\uff0c\u5c5e\u4e8e\u5178\u578b\u7684\u4f60\u53ef\u4ee5\u7528\u5b83\u505a\u4efb\u4f55\u4e8b\uff0c\u4f46\u53c8\u65e0\u4ece\u4e0b\u624b\u3002\u5c24\u5176\u662f\uff0c\u5f53\u4f60\u60f3\u901a\u8fc7 Matplotlib \u8c03\u51fa\u975e\u5e38\u6f02\u4eae\u7684\u6548\u679c\u65f6\uff0c\u5f80\u5f80\u4f1a\u4f24\u900f\u8111\u7b4b\uff0c\u975e\u5e38\u9ebb\u70e6\u3002<\/p>\n<p>Seaborn \u57fa\u4e8e Matplotlib \u6838\u5fc3\u5e93\u8fdb\u884c\u4e86\u66f4\u9ad8\u9636\u7684 API \u5c01\u88c5\uff0c\u53ef\u4ee5\u8ba9\u4f60\u8f7b\u677e\u5730\u753b\u51fa\u66f4\u6f02\u4eae\u7684\u56fe\u5f62\u3002Seaborn \u7684\u6f02\u4eae\u4e3b\u8981\u4f53\u73b0\u5728\u914d\u8272\u66f4\u52a0\u8212\u670d\u3001\u4ee5\u53ca\u56fe\u5f62\u5143\u7d20\u7684\u6837\u5f0f\u66f4\u52a0\u7ec6\u817b\uff0c\u4e0b\u9762\u662f Seaborn \u5b98\u65b9\u7ed9\u51fa\u7684\u53c2\u8003\u56fe\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/1.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"542\" height=\"245\"><\/p>\n<p>Seaborn \u5177\u6709\u5982\u4e0b\u7279\u70b9\uff1a<\/p>\n<ul>\n<li>\u5185\u7f6e\u6570\u4e2a\u7ecf\u8fc7\u4f18\u5316\u7684\u6837\u5f0f\u6548\u679c\u3002<\/li>\n<li>\u589e\u52a0\u8c03\u8272\u677f\u5de5\u5177\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u4e3a\u6570\u636e\u642d\u914d\u989c\u8272\u3002<\/li>\n<li>\u5355\u53d8\u91cf\u548c\u53cc\u53d8\u91cf\u5206\u5e03\u7ed8\u56fe\u66f4\u4e3a\u7b80\u5355\uff0c\u53ef\u7528\u4e8e\u5bf9\u6570\u636e\u5b50\u96c6\u76f8\u4e92\u6bd4\u8f83\u3002<\/li>\n<li>\u5bf9\u72ec\u7acb\u53d8\u91cf\u548c\u76f8\u5173\u53d8\u91cf\u8fdb\u884c\u56de\u5f52\u62df\u5408\u548c\u53ef\u89c6\u5316\u66f4\u52a0\u4fbf\u6377\u3002<\/li>\n<li>\u5bf9\u6570\u636e\u77e9\u9635\u8fdb\u884c\u53ef\u89c6\u5316\uff0c\u5e76\u4f7f\u7528\u805a\u7c7b\u7b97\u6cd5\u8fdb\u884c\u5206\u6790\u3002<\/li>\n<li>\u57fa\u4e8e\u65f6\u95f4\u5e8f\u5217\u7684\u7ed8\u5236\u548c\u7edf\u8ba1\u529f\u80fd\uff0c\u66f4\u52a0\u7075\u6d3b\u7684\u4e0d\u786e\u5b9a\u5ea6\u4f30\u8ba1\u3002<\/li>\n<li>\u57fa\u4e8e\u7f51\u683c\u7ed8\u5236\u51fa\u66f4\u52a0\u590d\u6742\u7684\u56fe\u50cf\u96c6\u5408\u3002<\/li>\n<\/ul>\n<p>\u9664\u6b64\u4e4b\u5916\uff0c Seaborn \u5bf9 Matplotlib \u548c Pandas \u7684\u6570\u636e\u7ed3\u6784\u9ad8\u5ea6\u517c\u5bb9 \uff0c\u975e\u5e38\u9002\u5408\u4f5c\u4e3a\u6570\u636e\u6316\u6398\u8fc7\u7a0b\u4e2d\u7684\u53ef\u89c6\u5316\u5de5\u5177\u3002<\/p>\n<h3>\u5feb\u901f\u4f18\u5316\u56fe\u5f62<\/h3>\n<p>\u5f53\u6211\u4eec\u4f7f\u7528 Matplotlib \u7ed8\u56fe\u65f6\uff0c\u9ed8\u8ba4\u7684\u56fe\u50cf\u6837\u5f0f\u7b97\u4e0d\u4e0a\u7f8e\u89c2\u3002\u6b64\u65f6\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528 Seaborn \u5b8c\u6210\u5feb\u901f\u4f18\u5316\u3002\u4e0b\u9762\uff0c\u6211\u4eec\u5148\u4f7f\u7528 Matplotlib \u7ed8\u5236\u4e00\u5f20\u7b80\u5355\u7684\u56fe\u50cf\u3002<\/p>\n<pre><code class=\"language-python\">import matplotlib.pyplot as plt\n%matplotlib inline\n\nx = [1, 3, 5, 7, 9, 11, 13, 15, 17, 19]\ny_bar = [3, 4, 6, 8, 9, 10, 9, 11, 7, 8]\ny_line = [2, 3, 5, 7, 8, 9, 8, 10, 6, 7]\n\nplt.bar(x, y_bar)\nplt.plot(x, y_line, &amp;#039;-o&amp;#039;, color=&amp;#039;y&amp;#039;)<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/2.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"374\" height=\"252\"><\/p>\n<p>\u4f7f\u7528 Seaborn \u5b8c\u6210\u56fe\u50cf\u5feb\u901f\u4f18\u5316\u7684\u65b9\u6cd5\u975e\u5e38\u7b80\u5355\u3002\u53ea\u9700\u8981\u5c06 Seaborn \u63d0\u4f9b\u7684\u6837\u5f0f\u58f0\u660e\u4ee3\u7801 <code>sns.set()<\/code> \u653e\u7f6e\u5728\u7ed8\u56fe\u524d\u5373\u53ef\u3002<\/p>\n<pre><code>import seaborn as sns\n\nsns.set()  # \u58f0\u660e\u4f7f\u7528 Seaborn \u6837\u5f0f\n\nplt.bar(x, y_bar)\nplt.plot(x, y_line, &amp;#039;-o&amp;#039;, color=&amp;#039;y&amp;#039;)<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/3.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"374\" height=\"252\"><\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u53d1\u73b0\uff0c\u76f8\u6bd4\u4e8e Matplotlib \u9ed8\u8ba4\u7684\u7eaf\u767d\u8272\u80cc\u666f\uff0cSeaborn \u9ed8\u8ba4\u7684\u6d45\u7070\u8272\u7f51\u683c\u80cc\u666f\u770b\u8d77\u6765\u7684\u786e\u8981\u7ec6\u817b\u8212\u9002\u4e00\u4e9b\u3002\u800c\u67f1\u72b6\u56fe\u7684\u8272\u8c03\u3001\u5750\u6807\u8f74\u7684\u5b57\u4f53\u5927\u5c0f\u4e5f\u90fd\u6709\u4e00\u4e9b\u53d8\u5316\u3002<\/p>\n<p><code>sns.set()<\/code> \u7684\u9ed8\u8ba4\u53c2\u6570\u4e3a\uff1a<\/p>\n<pre><code class=\"language-python\">sns.set(context=&amp;#039;notebook&amp;#039;, style=&amp;#039;darkgrid&amp;#039;, palette=&amp;#039;deep&amp;#039;, font=&amp;#039;sans-serif&amp;#039;, font_scale=1, color_codes=False, rc=None)<\/code><\/pre>\n<p>\u5176\u4e2d\uff1a<\/p>\n<ul>\n<li><code>context=&#039;&#039;<\/code> \u53c2\u6570\u63a7\u5236\u7740\u9ed8\u8ba4\u7684\u753b\u5e45\u5927\u5c0f\uff0c\u5206\u522b\u6709 <code>{paper, notebook, talk, poster}<\/code> \u56db\u4e2a\u503c\u3002\u5176\u4e2d\uff0c<code>poster &gt; talk &gt; notebook &gt; paper<\/code>\u3002<\/li>\n<li><code>style=&#039;&#039;<\/code> \u53c2\u6570\u63a7\u5236\u9ed8\u8ba4\u6837\u5f0f\uff0c\u5206\u522b\u6709 <code>{darkgrid, whitegrid, dark, white, ticks}<\/code>\uff0c\u4f60\u53ef\u4ee5\u81ea\u884c\u66f4\u6539\u67e5\u770b\u5b83\u4eec\u4e4b\u95f4\u7684\u4e0d\u540c\u3002<\/li>\n<li><code>palette=&#039;&#039;<\/code> \u53c2\u6570\u4e3a\u9884\u8bbe\u7684\u8c03\u8272\u677f\u3002\u5206\u522b\u6709 <code>{deep, muted, bright, pastel, dark, colorblind}<\/code> \u7b49\uff0c\u4f60\u53ef\u4ee5\u81ea\u884c\u66f4\u6539\u67e5\u770b\u5b83\u4eec\u4e4b\u95f4\u7684\u4e0d\u540c\u3002<\/li>\n<li>\u5269\u4e0b\u7684 <code>font=&#039;&#039;<\/code> \u7528\u4e8e\u8bbe\u7f6e\u5b57\u4f53\uff0c<code>font_scale=<\/code> \u8bbe\u7f6e\u5b57\u4f53\u5927\u5c0f\uff0c<code>color_codes=<\/code> \u4e0d\u4f7f\u7528\u8c03\u8272\u677f\u800c\u91c7\u7528\u5148\u524d\u7684 <code>&#039;r&#039;<\/code> \u7b49\u8272\u5f69\u7f29\u5199\u3002<\/li>\n<\/ul>\n<h3>Seaborn \u7ed8\u56fe API<\/h3>\n<p>Seaborn \u4e00\u5171\u62e5\u6709 50 \u591a\u4e2a API \u7c7b\uff0c\u76f8\u6bd4\u4e8e Matplotlib \u6570\u5343\u4e2a\u7684\u89c4\u6a21\uff0c\u53ef\u4ee5\u7b97\u4f5c\u662f\u77ed\u5c0f\u7cbe\u608d\u4e86\u3002\u5176\u4e2d\uff0c\u6839\u636e\u56fe\u5f62\u7684\u9002\u5e94\u573a\u666f\uff0cSeaborn \u7684\u7ed8\u56fe\u65b9\u6cd5\u5927\u81f4\u5206\u7c7b 6 \u7c7b\uff0c\u5206\u522b\u662f\uff1a\u5173\u8054\u56fe\u3001\u7c7b\u522b\u56fe\u3001\u5206\u5e03\u56fe\u3001\u56de\u5f52\u56fe\u3001\u77e9\u9635\u56fe\u548c\u7ec4\u5408\u56fe\u3002\u800c\u8fd9 6 \u5927\u7c7b\u4e0b\u9762\u53c8\u5305\u542b\u4e0d\u540c\u6570\u91cf\u7684\u7ed8\u56fe\u51fd\u6570\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c31\u901a\u8fc7\u5b9e\u9645\u6570\u636e\u8fdb\u884c\u6f14\u793a\uff0c\u4f7f\u7528 Seaborn \u7ed8\u5236\u4e0d\u540c\u9002\u5e94\u573a\u666f\u7684\u56fe\u5f62\u3002<\/p>\n<h4>\u5173\u8054\u56fe<\/h4>\n<p>\u5f53\u6211\u4eec\u9700\u8981\u5bf9\u6570\u636e\u8fdb\u884c\u5173\u8054\u6027\u5206\u6790\u65f6\uff0c\u53ef\u80fd\u4f1a\u7528\u5230 Seaborn \u63d0\u4f9b\u7684\u4ee5\u4e0b\u51e0\u4e2a API\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: center;\">\u5173\u8054\u6027\u5206\u6790<\/th>\n<th style=\"text-align: center;\">\u4ecb\u7ecd<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: center;\">relplot<\/td>\n<td style=\"text-align: center;\">\u7ed8\u5236\u5173\u7cfb\u56fe<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">scatterplot<\/td>\n<td style=\"text-align: center;\">\u591a\u7ef4\u5ea6\u5206\u6790\u6563\u70b9\u56fe<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">lineplot<\/td>\n<td style=\"text-align: center;\">\u591a\u7ef4\u5ea6\u5206\u6790\u7ebf\u5f62\u56fe<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.relplot.html\"><code>relplot<\/code><\/a> \u662f relational plots \u7684\u7f29\u5199\uff0c\u5176\u53ef\u4ee5\u7528\u4e8e\u5448\u73b0\u6570\u636e\u4e4b\u540e\u7684\u5173\u7cfb\uff0c\u4e3b\u8981\u6709\u6563\u70b9\u56fe\u548c\u6761\u5f62\u56fe 2 \u79cd\u6837\u5f0f\u3002\u672c\u6b21\u5b9e\u9a8c\uff0c\u6211\u4eec\u4f7f\u7528\u9e22\u5c3e\u82b1\u6570\u636e\u96c6\u8fdb\u884c\u7ed8\u56fe\u63a2\u7d22\u3002<\/p>\n<p>\u5728\u7ed8\u56fe\u4e4b\u524d\uff0c\u5148\u719f\u6089\u4e00\u4e0b <a href=\"&lt;http:\/\/archive.ics.uci.edu\/ml\/datasets\/Iris&gt;\">iris \u9e22\u5c3e\u82b1\u6570\u636e\u96c6<\/a>\u3002\u6570\u636e\u96c6\u603b\u5171 150 \u884c\uff0c\u7531 5 \u5217\u7ec4\u6210\u3002\u5206\u522b\u4ee3\u8868\uff1a\u843c\u7247\u957f\u5ea6\u3001\u843c\u7247\u5bbd\u5ea6\u3001\u82b1\u74e3\u957f\u5ea6\u3001\u82b1\u74e3\u5bbd\u5ea6\u3001\u82b1\u7684\u7c7b\u522b\u3002\u5176\u4e2d\uff0c\u524d\u56db\u5217\u5747\u4e3a\u6570\u503c\u578b\u6570\u636e\uff0c\u6700\u540e\u4e00\u5217\u82b1\u7684\u5206\u7c7b\u4e3a\u4e09\u79cd\uff0c\u5206\u522b\u662f\uff1aIris Setosa\u3001Iris Versicolour\u3001Iris Virginica\u3002<\/p>\n<pre><code>iris = sns.load_dataset(&amp;quot;iris&amp;quot;)\niris.head()<\/code><\/pre>\n<pre><code>          sepal_length    sepal_width    petal_length    petal_width    species\n0                5.1              3.5        1.4                 0.2    setosa\n1                4.9              3.0        1.4                 0.2    setosa\n2                4.7              3.2        1.3                 0.2    setosa\n3                4.6              3.1        1.5                 0.2    setosa\n4                5.0              3.6        1.4                 0.2    setosa<\/code><\/pre>\n<p>\u6b64\u65f6\uff0c\u6211\u4eec\u6307\u5b9a xx \u548c yy \u7684\u7279\u5f81\uff0c\u9ed8\u8ba4\u53ef\u4ee5\u7ed8\u5236\u51fa\u6563\u70b9\u56fe\u3002<\/p>\n<pre><code>sns.relplot(x=&amp;quot;sepal_length&amp;quot;, y=&amp;quot;sepal_width&amp;quot;, data=iris)<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/4.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"374\" height=\"374\"><\/p>\n<p>\u4f46\u662f\uff0c\u4e0a\u56fe\u5e76\u4e0d\u80fd\u770b\u51fa\u6570\u636e\u7c7b\u522b\u4e4b\u95f4\u7684\u8054\u7cfb\uff0c\u5982\u679c\u6211\u4eec\u52a0\u5165\u7c7b\u522b\u7279\u5f81\u5bf9\u6570\u636e\u8fdb\u884c\u7740\u8272\uff0c\u5c31\u66f4\u597d\u4e00\u4e9b\u4e86\u3002<\/p>\n<pre><code>sns.relplot(x=&amp;quot;sepal_length&amp;quot;, y=&amp;quot;sepal_width&amp;quot;, hue=&amp;quot;species&amp;quot;, data=iris)<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/5.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"434\" height=\"348\"><\/p>\n<p>Seaborn \u7684\u51fd\u6570\u90fd\u6709\u5927\u91cf\u5b9e\u7528\u7684\u53c2\u6570\uff0c\u4f8b\u5982\u6211\u4eec\u6307\u5b9a <code>style<\/code> \u53c2\u6570\u53ef\u4ee5\u8d4b\u4e88\u4e0d\u540c\u7c7b\u522b\u7684\u6563\u70b9\u4e0d\u540c\u7684\u5f62\u72b6\u3002\u66f4\u591a\u7684\u53c2\u6570\uff0c\u5e0c\u671b\u5927\u5bb6\u901a\u8fc7\u9605\u8bfb\u5b98\u65b9\u6587\u6863\u4e86\u89e3\u3002<\/p>\n<pre><code>sns.relplot(x=&amp;#039;sepal_length&amp;#039;,y=&amp;#039;sepal_width&amp;#039;,hue=&amp;#039;species&amp;#039;,style=&amp;#039;species&amp;#039;,data=iris)<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/6.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"434\" height=\"348\"><\/p>\n<p>\u4e0d\u53ea\u662f\u6563\u70b9\u56fe\uff0c\u8be5\u65b9\u6cd5\u8fd8\u652f\u6301\u7ebf\u5f62\u56fe\uff0c\u53ea\u9700\u8981\u6307\u5b9a <code>kind=&quot;line&quot;<\/code> \u53c2\u6570\u5373\u53ef\u3002\u7ebf\u5f62\u56fe\u548c\u6563\u70b9\u56fe\u9002\u7528\u4e8e\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u3002\u7ebf\u5f62\u6001\u7ed8\u5236\u65f6\u8fd8\u4f1a\u81ea\u52a8\u7ed9\u51fa 95% \u7684\u7f6e\u4fe1\u533a\u95f4\u3002<\/p>\n<pre><code>sns.relplot(x=&amp;quot;sepal_length&amp;quot;, y=&amp;quot;petal_length&amp;quot;,\n            hue=&amp;quot;species&amp;quot;, style=&amp;quot;species&amp;quot;, kind=&amp;quot;line&amp;quot;, data=iris)\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/7.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"434\" height=\"348\"><\/p>\n<p>\u4f60\u4f1a\u53d1\u73b0\uff0c\u4e0a\u9762\u6211\u4eec\u4e00\u4e2a\u63d0\u5230\u4e86 3 \u4e2a API\uff0c\u5206\u522b\u662f\uff1a<code>relplot<\/code>\uff0c<a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.scatterplot.html\"><code>scatterplot<\/code><\/a> \u548c <a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.lineplot.html\"><code>lineplot<\/code><\/a>\u3002\u5b9e\u9645\u4e0a\uff0c\u4f60\u53ef\u4ee5\u628a\u6211\u4eec\u5df2\u7ecf\u7ec3\u4e60\u8fc7\u7684 <code>relplot<\/code> \u770b\u4f5c\u662f <code>scatterplot<\/code> \u548c <code>lineplot<\/code> \u7684\u7ed3\u5408\u7248\u672c\u3002<\/p>\n<p>\u8fd9\u91cc\u5c31\u8981\u63d0\u5230 Seaborn \u4e2d\u7684 API \u5c42\u7ea7\u6982\u5ff5\uff0cSeaborn \u4e2d\u7684 API \u5206\u4e3a <strong>Figure-level<\/strong> \u548c <strong>Axes-level <\/strong>\u4e24\u79cd\u3002<code>relplot<\/code> \u5c31\u662f\u4e00\u4e2a Figure-level \u63a5\u53e3\uff0c\u800c <code>scatterplot<\/code> \u548c <code>lineplot<\/code> \u5219\u662f Axes-level \u63a5\u53e3\u3002<\/p>\n<p>Figure-level \u548c Axes-level API \u7684\u533a\u522b\u5728\u4e8e\uff0cAxes-level \u7684\u51fd\u6570\u53ef\u4ee5\u5b9e\u73b0\u4e0e Matplotlib \u66f4\u7075\u6d3b\u548c\u7d27\u5bc6\u7684\u7ed3\u5408\uff0c\u800c Figure-level \u5219\u66f4\u50cf\u662f\u300c\u61d2\u4eba\u51fd\u6570\u300d\uff0c\u9002\u5408\u4e8e\u5feb\u901f\u5e94\u7528\u3002<\/p>\n<p>\u4f8b\u5982\u4e0a\u65b9\u7684\u56fe\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u4f7f\u7528 <code>lineplot<\/code> \u51fd\u6570\u7ed8\u5236\uff0c\u4f60\u53ea\u9700\u8981\u53d6\u6d88\u6389 <code>relplot<\/code> \u4e2d\u7684 <code>kind<\/code> \u53c2\u6570\u5373\u53ef\u3002<\/p>\n<pre><code>sns.lineplot(x=&amp;quot;sepal_length&amp;quot;, y=&amp;quot;petal_length&amp;quot;,\n             hue=&amp;quot;species&amp;quot;, style=&amp;quot;species&amp;quot;, data=iris)\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/8.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"388\" height=\"274\"><\/p>\n<h4>\u7c7b\u522b\u56fe<\/h4>\n<p>\u4e0e\u5173\u8054\u56fe\u76f8\u4f3c\uff0c\u7c7b\u522b\u56fe\u7684 Figure-level \u63a5\u53e3\u662f <code>catplot<\/code>\uff0c\u5176\u4e3a categorical plots \u7684\u7f29\u5199\u3002\u800c <code>catplot<\/code> \u5b9e\u9645\u4e0a\u662f\u5982\u4e0b Axes-level \u7ed8\u56fe API \u7684\u96c6\u5408\uff1a<\/p>\n<ul>\n<li>\u5206\u7c7b\u6563\u70b9\u56fe:\n<ul>\n<li><a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.stripplot.html\"><code>stripplot()<\/code><\/a> (<code>kind=&quot;strip&quot;<\/code>)<\/li>\n<li><a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.swarmplot.html\"><code>swarmplot()<\/code><\/a> (<code>kind=&quot;swarm&quot;<\/code>)<\/li>\n<\/ul>\n<\/li>\n<li>\u5206\u7c7b\u5206\u5e03\u56fe:\n<ul>\n<li><a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.boxplot.html\"><code>boxplot()<\/code><\/a> (<code>kind=&quot;box&quot;<\/code>)<\/li>\n<li><a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.violinplot.html\"><code>violinplot()<\/code><\/a> (<code>kind=&quot;violin&quot;<\/code>)<\/li>\n<li><a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.boxenplot.html\"><code>boxenplot()<\/code><\/a> (<code>kind=&quot;boxen&quot;<\/code>)<\/li>\n<\/ul>\n<\/li>\n<li>\u5206\u7c7b\u4f30\u8ba1\u56fe:\n<ul>\n<li><a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.pointplot.html\"><code>pointplot()<\/code><\/a> (<code>kind=&quot;point&quot;<\/code>)<\/li>\n<li><a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.barplot.html\"><code>barplot()<\/code><\/a> (<code>kind=&quot;bar&quot;<\/code>)<\/li>\n<li><a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.countplot.html\"><code>countplot()<\/code><\/a> (<code>kind=&quot;count&quot;<\/code>)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u4e0b\u9762\uff0c\u6211\u4eec\u770b\u4e00\u4e0b <code>catplot<\/code> \u7ed8\u56fe\u6548\u679c\u3002\u8be5\u65b9\u6cd5\u9ed8\u8ba4\u662f\u7ed8\u5236 <code>kind=&quot;strip&quot;<\/code> \u6563\u70b9\u56fe\u3002<\/p>\n<pre><code>sns.catplot(x=&amp;quot;sepal_length&amp;quot;, y=&amp;quot;species&amp;quot;, data=iris)\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/9.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"388\" height=\"388\"><\/p>\n<p><code>kind=&quot;swarm&quot;<\/code> \u53ef\u4ee5\u8ba9\u6563\u70b9\u6309\u7167 beeswarm \u7684\u65b9\u5f0f\u9632\u6b62\u91cd\u53e0\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u89c2\u6d4b\u6570\u636e\u5206\u5e03\u3002<\/p>\n<pre><code>sns.catplot(x=&amp;quot;sepal_length&amp;quot;, y=&amp;quot;species&amp;quot;, kind=&amp;quot;swarm&amp;quot;, data=iris)\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/10.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"388\" height=\"388\"><\/p>\n<p>\u540c\u7406\uff0c<code>hue=<\/code> \u53c2\u6570\u53ef\u4ee5\u7ed9\u56fe\u50cf\u5f15\u5165\u53e6\u4e00\u4e2a\u7ef4\u5ea6\uff0c\u7531\u4e8e iris \u6570\u636e\u96c6\u53ea\u6709\u4e00\u4e2a\u7c7b\u522b\u5217\uff0c\u6211\u4eec\u8fd9\u91cc\u5c31\u4e0d\u518d\u6dfb\u52a0 <code>hue=<\/code> \u53c2\u6570\u4e86\u3002\u5982\u679c\u4e00\u4e2a\u6570\u636e\u96c6\u6709\u591a\u4e2a\u7c7b\u522b\uff0c<code>hue=<\/code> \u53c2\u6570\u5c31\u53ef\u4ee5\u8ba9\u6570\u636e\u70b9\u6709\u66f4\u597d\u7684\u533a\u5206\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u4f9d\u6b21\u5c1d\u8bd5\u5176\u4ed6\u51e0\u79cd\u56fe\u5f62\u7684\u7ed8\u5236\u6548\u679c\u3002\u7ed8\u5236\u7bb1\u7ebf\u56fe\uff1a<\/p>\n<pre><code>sns.catplot(x=&amp;quot;sepal_length&amp;quot;, y=&amp;quot;species&amp;quot;, kind=&amp;quot;box&amp;quot;, data=iris)\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/11.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"388\" height=\"388\"><\/p>\n<p>\u7ed8\u5236\u5c0f\u63d0\u7434\u56fe\uff1a<\/p>\n<pre><code>sns.catplot(x=&amp;quot;sepal_length&amp;quot;, y=&amp;quot;species&amp;quot;, kind=&amp;quot;violin&amp;quot;, data=iris)\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/12.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"388\" height=\"388\"><\/p>\n<p>\u7ed8\u5236\u589e\u5f3a\u7bb1\u7ebf\u56fe\uff1a<\/p>\n<pre><code>sns.catplot(x=&amp;quot;species&amp;quot;, y=&amp;quot;sepal_length&amp;quot;, kind=&amp;quot;boxen&amp;quot;, data=iris)\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/13.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"388\" height=\"388\"><\/p>\n<p>\u7ed8\u5236\u70b9\u7ebf\u56fe\uff1a<\/p>\n<pre><code>sns.catplot(x=&amp;quot;sepal_length&amp;quot;, y=&amp;quot;species&amp;quot;, kind=&amp;quot;point&amp;quot;, data=iris)\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/14.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"388\" height=\"388\"><\/p>\n<p>\u7ed8\u5236\u6761\u5f62\u56fe\uff1a<\/p>\n<pre><code>sns.catplot(x=&amp;quot;sepal_length&amp;quot;, y=&amp;quot;species&amp;quot;, kind=&amp;quot;bar&amp;quot;, data=iris)\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/15.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"388\" height=\"388\"><\/p>\n<p>\u7ed8\u5236\u8ba1\u6570\u6761\u5f62\u56fe\uff1a<\/p>\n<pre><code>sns.catplot(x=&amp;quot;species&amp;quot;, kind=&amp;quot;count&amp;quot;, data=iris)\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/16.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"388\" height=\"388\"><\/p>\n<h4>\u5206\u5e03\u56fe<\/h4>\n<p>\u5206\u5e03\u56fe\u4e3b\u8981\u662f\u7528\u4e8e\u53ef\u89c6\u5316\u53d8\u91cf\u7684\u5206\u5e03\u60c5\u51b5\uff0c\u4e00\u822c\u5206\u4e3a\u5355\u53d8\u91cf\u5206\u5e03\u548c\u591a\u53d8\u91cf\u5206\u5e03\u3002\u5f53\u7136\u8fd9\u91cc\u7684\u591a\u53d8\u91cf\u591a\u6307\u4e8c\u5143\u53d8\u91cf\uff0c\u66f4\u591a\u7684\u53d8\u91cf\u65e0\u6cd5\u7ed8\u5236\u51fa\u76f4\u89c2\u7684\u53ef\u89c6\u5316\u56fe\u5f62\u3002<\/p>\n<p>Seaborn \u63d0\u4f9b\u7684\u5206\u5e03\u56fe\u7ed8\u5236\u65b9\u6cd5\u4e00\u822c\u6709\u8fd9\u51e0\u4e2a\uff1a<br \/>\n<a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.jointplot.html\"><code>jointplot<\/code><\/a>\uff0c<a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.pairplot.html\"><code>pairplot<\/code><\/a>\uff0c<a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.distplot.html\"><code>distplot<\/code><\/a>\uff0c<a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.kdeplot.html\"><code>kdeplot<\/code><\/a>\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u4f9d\u6b21\u6765\u770b\u4e00\u4e0b\u8fd9\u4e9b\u7ed8\u56fe\u65b9\u6cd5\u7684\u4f7f\u7528\u3002<\/p>\n<p>Seaborn \u5feb\u901f\u67e5\u770b\u5355\u53d8\u91cf\u5206\u5e03\u7684\u65b9\u6cd5\u662f <code>distplot<\/code>\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u8be5\u65b9\u6cd5\u5c06\u4f1a\u7ed8\u5236\u76f4\u65b9\u56fe\u5e76\u62df\u5408\u6838\u5bc6\u5ea6\u4f30\u8ba1\u56fe\u3002<\/p>\n<pre><code>sns.distplot(iris[&amp;quot;sepal_length&amp;quot;])\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/17.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"382\" height=\"274\"><\/p>\n<p><code>distplot<\/code> \u63d0\u4f9b\u4e86\u53c2\u6570\u6765\u8c03\u6574\u76f4\u65b9\u56fe\u548c[\u6838\u5bc6\u5ea6\u4f30\u8ba1\u56fe](\u4ec0\u4e48\u662f\u6838\u5bc6\u5ea6\u4f30\u8ba1\uff1f\u5982\u4f55\u611f\u6027\u8ba4\u8bc6\uff1f &#8211; \u6167\u822a\u7684\u56de\u7b54 &#8211; \u77e5\u4e4e<br \/>\n<a href=\"https:\/\/www.zhihu.com\/question\/27301358\/answer\/105267357)\uff0c\u4f8b\u5982\u8bbe\u7f6e\">https:\/\/www.zhihu.com\/question\/27301358\/answer\/105267357)\uff0c\u4f8b\u5982\u8bbe\u7f6e<\/a> <code>kde=False<\/code> \u5219\u53ef\u4ee5\u53ea\u7ed8\u5236\u76f4\u65b9\u56fe\uff0c\u6216\u8005 <code>hist=False<\/code> \u53ea\u7ed8\u5236\u6838\u5bc6\u5ea6\u4f30\u8ba1\u56fe\u3002\u5f53\u7136\uff0c<code>kdeplot<\/code> \u53ef\u4ee5\u4e13\u95e8\u7528\u4e8e\u7ed8\u5236\u6838\u5bc6\u5ea6\u4f30\u8ba1\u56fe\uff0c\u5176\u6548\u679c\u548c <code>distplot(hist=False)<\/code> \u4e00\u81f4\uff0c\u4f46 <code>kdeplot<\/code> \u62e5\u6709\u66f4\u591a\u7684\u81ea\u5b9a\u4e49\u8bbe\u7f6e\u3002<\/p>\n<pre><code>sns.kdeplot(iris[&amp;quot;sepal_length&amp;quot;])\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/18.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"382\" height=\"274\"><\/p>\n<p><code>jointplot<\/code> \u4e3b\u8981\u662f\u7528\u4e8e\u7ed8\u5236\u4e8c\u5143\u53d8\u91cf\u5206\u5e03\u56fe\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u63a2\u5bfb <code>sepal_length<\/code> \u548c <code>sepal_width<\/code> \u4e8c\u5143\u7279\u5f81\u53d8\u91cf\u4e4b\u95f4\u7684\u5173\u7cfb\u3002<\/p>\n<pre><code>sns.jointplot(x=&amp;quot;sepal_length&amp;quot;, y=&amp;quot;sepal_width&amp;quot;, data=iris)\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/19.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"500\" height=\"500\"><\/p>\n<p><code>jointplot<\/code> \u5e76\u4e0d\u662f\u4e00\u4e2a Figure-level \u63a5\u53e3\uff0c\u4f46\u5176\u652f\u6301 <code>kind=<\/code> \u53c2\u6570\u6307\u5b9a\u7ed8\u5236\u51fa\u4e0d\u540c\u6837\u5f0f\u7684\u5206\u5e03\u56fe\u3002\u4f8b\u5982\uff0c\u7ed8\u5236\u51fa\u6838\u5bc6\u5ea6\u4f30\u8ba1\u5bf9\u6bd4\u56fe\u3002<\/p>\n<pre><code>sns.jointplot(x=&amp;quot;sepal_length&amp;quot;, y=&amp;quot;sepal_width&amp;quot;, data=iris, kind=&amp;quot;kde&amp;quot;)\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/20.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"500\" height=\"500\"><\/p>\n<p>\u516d\u8fb9\u5f62\u8ba1\u6570\u56fe\uff1a<\/p>\n<pre><code>sns.jointplot(x=&amp;quot;sepal_length&amp;quot;, y=&amp;quot;sepal_width&amp;quot;, data=iris, kind=&amp;quot;hex&amp;quot;)\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/21.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"500\" height=\"500\"><\/p>\n<p>\u56de\u5f52\u62df\u5408\u56fe\uff1a<\/p>\n<pre><code>sns.jointplot(x=&amp;quot;sepal_length&amp;quot;, y=&amp;quot;sepal_width&amp;quot;, data=iris, kind=&amp;quot;reg&amp;quot;)\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/22.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"500\" height=\"500\"><\/p>\n<p>\u6700\u540e\u8981\u4ecb\u7ecd\u7684 <code>pairplot<\/code> \u66f4\u52a0\u5f3a\u5927\uff0c\u5176\u652f\u6301\u4e00\u6b21\u6027\u5c06\u6570\u636e\u96c6\u4e2d\u7684\u7279\u5f81\u53d8\u91cf\u4e24\u4e24\u5bf9\u6bd4\u7ed8\u56fe\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5bf9\u89d2\u7ebf\u4e0a\u662f\u5355\u53d8\u91cf\u5206\u5e03\u56fe\uff0c\u800c\u5176\u4ed6\u5219\u662f\u4e8c\u5143\u53d8\u91cf\u5206\u5e03\u56fe\u3002<\/p>\n<pre><code>sns.pairplot(iris)\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/23.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=auto height=auto><\/p>\n<p>\u6b64\u65f6\uff0c\u6211\u4eec\u5f15\u5165\u7b2c\u4e09\u7ef4\u5ea6 <code>hue=&quot;species&quot;<\/code> \u4f1a\u66f4\u52a0\u76f4\u89c2\u3002<\/p>\n<pre><code>sns.pairplot(iris, hue=&amp;quot;species&amp;quot;)\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/24.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=auto height=auto><\/p>\n<h4>\u56de\u5f52\u56fe<\/h4>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u7ee7\u7eed\u4ecb\u7ecd\u56de\u5f52\u56fe\uff0c\u56de\u5f52\u56fe\u7684\u7ed8\u5236\u51fd\u6570\u4e3b\u8981\u6709\uff1a<a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.lmplot.html\"><code>lmplot<\/code><\/a> \u548c <a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.regplot.html\"><code>regplot<\/code><\/a>\u3002<\/p>\n<p><code>regplot<\/code> \u7ed8\u5236\u56de\u5f52\u56fe\u65f6\uff0c\u53ea\u9700\u8981\u6307\u5b9a\u81ea\u53d8\u91cf\u548c\u56e0\u53d8\u91cf\u5373\u53ef\uff0c<code>regplot<\/code> \u4f1a\u81ea\u52a8\u5b8c\u6210\u7ebf\u6027\u56de\u5f52\u62df\u5408\u3002<\/p>\n<pre><code>sns.regplot(x=&amp;quot;sepal_length&amp;quot;, y=&amp;quot;sepal_width&amp;quot;, data=iris)\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/25.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=\"399\" height=\"274\"><\/p>\n<p><code>lmplot<\/code> \u540c\u6837\u662f\u7528\u4e8e\u7ed8\u5236\u56de\u5f52\u56fe\uff0c\u4f46 <code>lmplot<\/code> \u652f\u6301\u5f15\u5165\u7b2c\u4e09\u7ef4\u5ea6\u8fdb\u884c\u5bf9\u6bd4\uff0c\u4f8b\u5982\u6211\u4eec\u8bbe\u7f6e <code>hue=&quot;species&quot;<\/code>\u3002<\/p>\n<pre><code>sns.lmplot(x=&amp;quot;sepal_length&amp;quot;, y=&amp;quot;sepal_width&amp;quot;, hue=&amp;quot;species&amp;quot;, data=iris)\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/26.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=auto height=auto><\/p>\n<h4>\u77e9\u9635\u56fe<\/h4>\n<p>\u77e9\u9635\u56fe\u4e2d\u6700\u5e38\u7528\u7684\u5c31\u53ea\u6709 2 \u4e2a\uff0c\u5206\u522b\u662f\uff1a<a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.heatmap.html\"><code>heatmap<\/code><\/a> \u548c <a href=\"https:\/\/seaborn.pydata.org\/generated\/seaborn.clustermap.html\"><code>clustermap<\/code><\/a>\u3002<\/p>\n<p>\u610f\u5982\u5176\u540d\uff0c<code>heatmap<\/code> \u4e3b\u8981\u7528\u4e8e\u7ed8\u5236\u70ed\u529b\u56fe\u3002<\/p>\n<pre><code>import numpy as np\n\nsns.heatmap(np.random.rand(10, 10))\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/27.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=auto height=auto><\/p>\n<p>\u70ed\u529b\u56fe\u5728\u67d0\u4e9b\u573a\u666f\u4e0b\u975e\u5e38\u5b9e\u7528\uff0c\u4f8b\u5982\u7ed8\u5236\u51fa\u53d8\u91cf\u76f8\u5173\u6027\u7cfb\u6570\u70ed\u529b\u56fe\u3002<\/p>\n<p>\u9664\u6b64\u4e4b\u5916\uff0c<code>clustermap<\/code> \u652f\u6301\u7ed8\u5236 <a href=\"https:\/\/baike.baidu.com\/item\/%E5%B1%82%E6%AC%A1%E8%81%9A%E7%B1%BB%E6%96%B9%E6%B3%95\"><i class=\"fa fa-external-link-square\" aria-hidden=\"true\"> \u5c42\u6b21\u805a\u7c7b<\/i><\/a> \u7ed3\u6784\u56fe\u3002\u5982\u4e0b\u6240\u793a\uff0c\u6211\u4eec\u5148\u53bb\u6389\u539f\u6570\u636e\u96c6\u4e2d\u6700\u540e\u4e00\u4e2a\u76ee\u6807\u5217\uff0c\u4f20\u5165\u7279\u5f81\u6570\u636e\u5373\u53ef\u3002\u5f53\u7136\uff0c\u4f60\u9700\u8981\u5bf9\u5c42\u6b21\u805a\u7c7b\u6709\u6240\u4e86\u89e3\uff0c\u5426\u5219\u5f88\u96be\u770b\u660e\u767d\u56fe\u50cf\u8868\u8ff0\u7684\u542b\u4e49\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/essay-1256185664.cos.ap-guangzhou.myqcloud.com\/%E5%8D%9A%E6%96%87%E9%85%8D%E5%9B%BE\/19-6-20_Seaborn_%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9F%BA%E7%A1%80\/28.png\" style=\"vertical-align: bottom; max-width: 100%;\" width=auto height=auto><\/p>\n<p>\u5982\u679c\u4f60\u6d4f\u89c8\u5b98\u65b9\u6587\u6863\uff0c\u5c31\u4f1a\u53d1\u73b0 Seaborn \u4e2d\u8fd8\u5b58\u5728\u5927\u91cf\u5df2\u5927\u4e9b\u5b57\u6bcd\u5f00\u59cb\u7684\u7c7b\uff0c\u4f8b\u5982 <code>JointGrid<\/code>\uff0c<code>PairGrid<\/code> \u7b49\u3002\u5b9e\u9645\u4e0a\u8fd9\u4e9b\u7c7b\u53ea\u662f\u5176\u5bf9\u5e94\u5c0f\u5199\u5b57\u6bcd\u7684\u51fd\u6570 <code>jointplot<\/code>\uff0c<code>pairplot<\/code> \u7684\u8fdb\u4e00\u6b65\u5c01\u88c5\u3002\u5f53\u7136\uff0c\u4e8c\u8005\u53ef\u80fd\u7a0d\u6709\u4e0d\u540c\uff0c\u4f46\u5e76\u6ca1\u6709\u672c\u8d28\u7684\u533a\u522b\u3002<\/p>\n<p>\u9664\u6b64\u4e4b\u5916\uff0c<a href=\"https:\/\/seaborn.pydata.org\/api.html\"><i class=\"fa fa-external-link-square\" aria-hidden=\"true\"> Seaborn \u5b98\u65b9\u6587\u6863<\/i><\/a> \u4e2d\u8fd8\u6709\u5173\u4e8e <a href=\"https:\/\/seaborn.pydata.org\/api.html#style-control\"><i class=\"fa fa-external-link-square\" aria-hidden=\"true\"> \u6837\u5f0f\u63a7\u5236<\/i><\/a> \u548c <a href=\"https:\/\/seaborn.pydata.org\/api.html#color-palettes\"><i class=\"fa fa-external-link-square\" aria-hidden=\"true\"> \u8272\u5f69\u81ea\u5b9a\u4e49<\/i><\/a> \u7b49\u4e00\u4e9b\u8f85\u52a9\u7ec4\u4ef6\u7684\u4ecb\u7ecd\u3002\u5bf9\u4e8e\u8fd9\u4e9b API \u7684\u5e94\u7528\u6ca1\u6709\u592a\u5927\u7684\u96be\u70b9\uff0c\u91cd\u70b9\u9700\u8981\u52e4\u4e8e\u7ec3\u4e60\u3002<\/p>\n<h3>\u5b9e\u9a8c\u603b\u7ed3<\/h3>\n<p>\u672c\u7ae0\u8282\u5bf9 Seaborn \u7684\u7528\u6cd5\u8fdb\u884c\u4e86\u7b80\u5355\u7684\u4ecb\u7ecd\u3002\u8fd9\u91cc\u9700\u8981\u8bf4\u660e\u4e00\u4e0b Seaborn \u548c Matplotlib \u4e4b\u95f4\u7684\u5173\u7cfb\uff0cSeaborn \u5e76\u4e0d\u662f\u4e3a\u4e86\u66ff\u4ee3 Matplotlib\uff0c\u800c\u5e94\u5f53\u88ab\u770b\u4f5c\u662f Matplotlib \u7684\u8865\u5145\u3002\u5bf9\u4e8e Matplotlib \u800c\u8a00\uff0c\u5b83\u5177\u6709\u9ad8\u5ea6\u81ea\u5b9a\u4e49\u5c5e\u6027\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4efb\u4f55\u4f60\u60f3\u8981\u7684\u6548\u679c\u3002\u800c Seaborn \u975e\u5e38\u7b80\u5355\u5feb\u6377\uff0c\u51e0\u884c\u4ee3\u7801\u5c31\u53ef\u4ee5\u753b\u51fa\u8fd8\u4e0d\u8d56\u7684\u56fe\u5f62\u3002\u603b\u4e4b\uff0cMatplotlib \u64c5\u957f\u4e8e\u7eaf\u7cb9\u7684\u7ed8\u56fe\uff0c\u800c Seaborn \u5219\u591a\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u63a2\u7d22\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[TOC] \u539f\u6587\u662f\u5b9e\u9a8c\u697c\u7684\u5728\u7ebf\u6559\u7a0bSeaborn \u6570\u636e\u53ef\u89c6\u5316\u57fa\u7840\u8bfe\u7a0b\u7684\u539f\u6587\u6574\u7406\uff0c\u6dfb\u52a0\u4e86\u6240\u6709\u7684\u7ed3\u679c\u56fe\uff0c\u4fbf\u4e8e\u5b66\u4e60\u3002 \u4ecb\u7ecd Matplotlib \u662f\u652f\u6301 Python \u8bed\u8a00\u7684\u5f00\u6e90\u7ed8\u56fe\u5e93\uff0c\u56e0\u4e3a\u5176\u652f\u6301\u4e30\u5bcc\u7684\u7ed8\u56fe\u7c7b\u578b\u3001\u7b80\u5355\u7684\u7ed8\u56fe\u65b9\u5f0f\u4ee5\u53ca\u5b8c\u5584\u7684\u63a5\u53e3\u6587\u6863\uff0c\u6df1\u53d7 Python \u5de5\u7a0b\u5e08\u3001\u79d1\u7814\u5b66\u8005\u3001\u6570\u636e\u5de5\u7a0b\u5e08\u7b49\u5404\u7c7b\u4eba\u58eb\u7684\u559c\u6b22\u3002Seaborn \u662f\u4ee5 Matplotlib \u4e3a\u6838\u5fc3\u7684\u9ad8\u9636\u7ed8\u56fe\u5e93\uff0c\u65e0\u9700\u7ecf\u8fc7\u590d\u6742\u7684\u81ea\u5b9a\u4e49\u5373\u53ef\u7ed8\u5236\u51fa\u66f4\u52a0\u6f02\u4eae\u7684\u56fe\u5f62\uff0c\u975e\u5e38\u9002\u5408\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u63a2\u7d22\u3002 \u77e5\u8bc6\u70b9 \u5173\u8054\u56fe \u7c7b\u522b\u56fe \u5206\u5e03\u56fe \u56de\u5f52\u56fe \u77e9\u9635\u56fe \u7ec4\u5408\u56fe Seaborn \u4ecb\u7ecd Matplotlib \u5e94\u8be5\u662f\u57fa\u4e8e Python \u8bed\u8a00\u6700\u4f18\u79c0\u7684\u7ed8\u56fe\u5e93\u4e86\uff0c\u4f46\u662f\u5b83\u4e5f\u6709\u4e00\u4e2a\u5341\u5206\u4ee4\u4eba\u5934\u75bc\u7684\u95ee\u9898\uff0c\u90a3\u5c31\u662f\u592a\u8fc7\u4e8e\u590d\u6742\u4e86\u30023000 \u591a\u9875\u7684\u5b98\u65b9\u6587\u6863\uff0c\u4e0a\u5343\u4e2a\u65b9\u6cd5\u4ee5\u53ca\u6570\u4e07\u4e2a\u53c2\u6570\uff0c\u5c5e\u4e8e\u5178\u578b\u7684\u4f60\u53ef\u4ee5\u7528\u5b83\u505a\u4efb\u4f55\u4e8b\uff0c\u4f46\u53c8\u65e0\u4ece\u4e0b\u624b\u3002\u5c24\u5176\u662f\uff0c\u5f53\u4f60\u60f3\u901a\u8fc7 Matplotlib \u8c03\u51fa\u975e\u5e38\u6f02\u4eae\u7684\u6548\u679c\u65f6\uff0c\u5f80\u5f80\u4f1a\u4f24\u900f\u8111\u7b4b\uff0c\u975e\u5e38\u9ebb\u70e6\u3002 Seaborn \u57fa\u4e8e Matplotlib \u6838\u5fc3\u5e93\u8fdb\u884c\u4e86\u66f4\u9ad8\u9636\u7684 API \u5c01\u88c5\uff0c\u53ef\u4ee5\u8ba9\u4f60\u8f7b\u677e\u5730\u753b\u51fa\u66f4\u6f02\u4eae\u7684\u56fe\u5f62\u3002Seaborn \u7684\u6f02\u4eae\u4e3b\u8981\u4f53\u73b0\u5728\u914d\u8272\u66f4\u52a0\u8212\u670d\u3001\u4ee5\u53ca\u56fe\u5f62\u5143\u7d20\u7684\u6837\u5f0f\u66f4\u52a0\u7ec6\u817b\uff0c\u4e0b\u9762\u662f Seaborn \u5b98\u65b9\u7ed9\u51fa\u7684\u53c2\u8003\u56fe\u3002 Seaborn \u5177\u6709\u5982\u4e0b\u7279\u70b9\uff1a \u5185\u7f6e\u6570\u4e2a\u7ecf\u8fc7\u4f18\u5316\u7684\u6837\u5f0f\u6548\u679c\u3002 \u589e\u52a0\u8c03\u8272\u677f\u5de5\u5177\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u4e3a\u6570\u636e\u642d\u914d\u989c\u8272\u3002 \u5355\u53d8\u91cf\u548c\u53cc\u53d8\u91cf\u5206\u5e03\u7ed8\u56fe\u66f4\u4e3a\u7b80\u5355\uff0c\u53ef\u7528\u4e8e\u5bf9\u6570\u636e\u5b50\u96c6\u76f8\u4e92\u6bd4\u8f83\u3002 \u5bf9\u72ec\u7acb\u53d8\u91cf\u548c\u76f8\u5173\u53d8\u91cf\u8fdb\u884c\u56de\u5f52\u62df\u5408\u548c\u53ef\u89c6\u5316\u66f4\u52a0\u4fbf\u6377\u3002 \u5bf9\u6570\u636e\u77e9\u9635\u8fdb\u884c\u53ef\u89c6\u5316\uff0c\u5e76\u4f7f\u7528\u805a\u7c7b\u7b97\u6cd5\u8fdb\u884c\u5206\u6790\u3002 \u57fa\u4e8e\u65f6\u95f4\u5e8f\u5217\u7684\u7ed8\u5236\u548c\u7edf\u8ba1\u529f\u80fd\uff0c\u66f4\u52a0\u7075\u6d3b\u7684\u4e0d\u786e\u5b9a\u5ea6\u4f30\u8ba1\u3002 \u57fa\u4e8e\u7f51\u683c\u7ed8\u5236\u51fa\u66f4\u52a0\u590d\u6742\u7684\u56fe\u50cf\u96c6\u5408\u3002 \u9664\u6b64\u4e4b\u5916\uff0c Seaborn \u5bf9 Matplotlib \u548c Pandas \u7684\u6570\u636e\u7ed3\u6784\u9ad8\u5ea6\u517c\u5bb9 \uff0c\u975e\u5e38\u9002\u5408\u4f5c\u4e3a\u6570\u636e\u6316\u6398\u8fc7\u7a0b\u4e2d\u7684\u53ef\u89c6\u5316\u5de5\u5177\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":207,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86,3,2],"tags":[18,10,40,11],"class_list":["post-204","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev","category-ml","category-py","tag-matplotlib","tag-python","tag-seaborn","tag-11"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Seaborn \u6570\u636e\u53ef\u89c6\u5316\u57fa\u7840 - Nemo<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/nemo.cool\/204.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Seaborn \u6570\u636e\u53ef\u89c6\u5316\u57fa\u7840 - Nemo\" \/>\n<meta property=\"og:description\" content=\"[TOC] \u539f\u6587\u662f\u5b9e\u9a8c\u697c\u7684\u5728\u7ebf\u6559\u7a0bSeaborn \u6570\u636e\u53ef\u89c6\u5316\u57fa\u7840\u8bfe\u7a0b\u7684\u539f\u6587\u6574\u7406\uff0c\u6dfb\u52a0\u4e86\u6240\u6709\u7684\u7ed3\u679c\u56fe\uff0c\u4fbf\u4e8e\u5b66\u4e60\u3002 \u4ecb\u7ecd Matplotlib \u662f\u652f\u6301 Python \u8bed\u8a00\u7684\u5f00\u6e90\u7ed8\u56fe\u5e93\uff0c\u56e0\u4e3a\u5176\u652f\u6301\u4e30\u5bcc\u7684\u7ed8\u56fe\u7c7b\u578b\u3001\u7b80\u5355\u7684\u7ed8\u56fe\u65b9\u5f0f\u4ee5\u53ca\u5b8c\u5584\u7684\u63a5\u53e3\u6587\u6863\uff0c\u6df1\u53d7 Python \u5de5\u7a0b\u5e08\u3001\u79d1\u7814\u5b66\u8005\u3001\u6570\u636e\u5de5\u7a0b\u5e08\u7b49\u5404\u7c7b\u4eba\u58eb\u7684\u559c\u6b22\u3002Seaborn \u662f\u4ee5 Matplotlib \u4e3a\u6838\u5fc3\u7684\u9ad8\u9636\u7ed8\u56fe\u5e93\uff0c\u65e0\u9700\u7ecf\u8fc7\u590d\u6742\u7684\u81ea\u5b9a\u4e49\u5373\u53ef\u7ed8\u5236\u51fa\u66f4\u52a0\u6f02\u4eae\u7684\u56fe\u5f62\uff0c\u975e\u5e38\u9002\u5408\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u63a2\u7d22\u3002 \u77e5\u8bc6\u70b9 \u5173\u8054\u56fe \u7c7b\u522b\u56fe \u5206\u5e03\u56fe \u56de\u5f52\u56fe \u77e9\u9635\u56fe \u7ec4\u5408\u56fe Seaborn \u4ecb\u7ecd Matplotlib \u5e94\u8be5\u662f\u57fa\u4e8e Python \u8bed\u8a00\u6700\u4f18\u79c0\u7684\u7ed8\u56fe\u5e93\u4e86\uff0c\u4f46\u662f\u5b83\u4e5f\u6709\u4e00\u4e2a\u5341\u5206\u4ee4\u4eba\u5934\u75bc\u7684\u95ee\u9898\uff0c\u90a3\u5c31\u662f\u592a\u8fc7\u4e8e\u590d\u6742\u4e86\u30023000 \u591a\u9875\u7684\u5b98\u65b9\u6587\u6863\uff0c\u4e0a\u5343\u4e2a\u65b9\u6cd5\u4ee5\u53ca\u6570\u4e07\u4e2a\u53c2\u6570\uff0c\u5c5e\u4e8e\u5178\u578b\u7684\u4f60\u53ef\u4ee5\u7528\u5b83\u505a\u4efb\u4f55\u4e8b\uff0c\u4f46\u53c8\u65e0\u4ece\u4e0b\u624b\u3002\u5c24\u5176\u662f\uff0c\u5f53\u4f60\u60f3\u901a\u8fc7 Matplotlib \u8c03\u51fa\u975e\u5e38\u6f02\u4eae\u7684\u6548\u679c\u65f6\uff0c\u5f80\u5f80\u4f1a\u4f24\u900f\u8111\u7b4b\uff0c\u975e\u5e38\u9ebb\u70e6\u3002 Seaborn \u57fa\u4e8e Matplotlib \u6838\u5fc3\u5e93\u8fdb\u884c\u4e86\u66f4\u9ad8\u9636\u7684 API \u5c01\u88c5\uff0c\u53ef\u4ee5\u8ba9\u4f60\u8f7b\u677e\u5730\u753b\u51fa\u66f4\u6f02\u4eae\u7684\u56fe\u5f62\u3002Seaborn \u7684\u6f02\u4eae\u4e3b\u8981\u4f53\u73b0\u5728\u914d\u8272\u66f4\u52a0\u8212\u670d\u3001\u4ee5\u53ca\u56fe\u5f62\u5143\u7d20\u7684\u6837\u5f0f\u66f4\u52a0\u7ec6\u817b\uff0c\u4e0b\u9762\u662f Seaborn \u5b98\u65b9\u7ed9\u51fa\u7684\u53c2\u8003\u56fe\u3002 Seaborn \u5177\u6709\u5982\u4e0b\u7279\u70b9\uff1a \u5185\u7f6e\u6570\u4e2a\u7ecf\u8fc7\u4f18\u5316\u7684\u6837\u5f0f\u6548\u679c\u3002 \u589e\u52a0\u8c03\u8272\u677f\u5de5\u5177\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u4e3a\u6570\u636e\u642d\u914d\u989c\u8272\u3002 \u5355\u53d8\u91cf\u548c\u53cc\u53d8\u91cf\u5206\u5e03\u7ed8\u56fe\u66f4\u4e3a\u7b80\u5355\uff0c\u53ef\u7528\u4e8e\u5bf9\u6570\u636e\u5b50\u96c6\u76f8\u4e92\u6bd4\u8f83\u3002 \u5bf9\u72ec\u7acb\u53d8\u91cf\u548c\u76f8\u5173\u53d8\u91cf\u8fdb\u884c\u56de\u5f52\u62df\u5408\u548c\u53ef\u89c6\u5316\u66f4\u52a0\u4fbf\u6377\u3002 \u5bf9\u6570\u636e\u77e9\u9635\u8fdb\u884c\u53ef\u89c6\u5316\uff0c\u5e76\u4f7f\u7528\u805a\u7c7b\u7b97\u6cd5\u8fdb\u884c\u5206\u6790\u3002 \u57fa\u4e8e\u65f6\u95f4\u5e8f\u5217\u7684\u7ed8\u5236\u548c\u7edf\u8ba1\u529f\u80fd\uff0c\u66f4\u52a0\u7075\u6d3b\u7684\u4e0d\u786e\u5b9a\u5ea6\u4f30\u8ba1\u3002 \u57fa\u4e8e\u7f51\u683c\u7ed8\u5236\u51fa\u66f4\u52a0\u590d\u6742\u7684\u56fe\u50cf\u96c6\u5408\u3002 \u9664\u6b64\u4e4b\u5916\uff0c Seaborn \u5bf9 Matplotlib \u548c Pandas \u7684\u6570\u636e\u7ed3\u6784\u9ad8\u5ea6\u517c\u5bb9 \uff0c\u975e\u5e38\u9002\u5408\u4f5c\u4e3a\u6570\u636e\u6316\u6398\u8fc7\u7a0b\u4e2d\u7684\u53ef\u89c6\u5316\u5de5\u5177\u3002 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nemo.cool\/204.html\" \/>\n<meta property=\"og:site_name\" content=\"Nemo\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-20T15:03:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:49:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/nemo.cool\/wp-content\/uploads\/2019\/06\/27.png\" \/>\n\t<meta property=\"og:image:width\" content=\"356\" \/>\n\t<meta property=\"og:image:height\" content=\"257\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Nemo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nemo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/204.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/204.html\"},\"author\":{\"name\":\"Nemo\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/#\\\/schema\\\/person\\\/698f803ee811e2b140a90f5d5de913d2\"},\"headline\":\"Seaborn \u6570\u636e\u53ef\u89c6\u5316\u57fa\u7840\",\"datePublished\":\"2019-06-20T15:03:11+00:00\",\"dateModified\":\"2024-11-26T07:49:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/204.html\"},\"wordCount\":98,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/#\\\/schema\\\/person\\\/698f803ee811e2b140a90f5d5de913d2\"},\"image\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/204.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/27.png\",\"keywords\":[\"Matplotlib\",\"python\",\"seaborn\",\"\u673a\u5668\u5b66\u4e60\"],\"articleSection\":[\"Dev\",\"ML\",\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/nemo.cool\\\/204.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/204.html\",\"url\":\"https:\\\/\\\/nemo.cool\\\/204.html\",\"name\":\"Seaborn \u6570\u636e\u53ef\u89c6\u5316\u57fa\u7840 - Nemo\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/204.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/204.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/27.png\",\"datePublished\":\"2019-06-20T15:03:11+00:00\",\"dateModified\":\"2024-11-26T07:49:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/204.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/nemo.cool\\\/204.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/204.html#primaryimage\",\"url\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/27.png\",\"contentUrl\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/27.png\",\"width\":356,\"height\":257},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/204.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/nemo.cool\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Seaborn \u6570\u636e\u53ef\u89c6\u5316\u57fa\u7840\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/#website\",\"url\":\"https:\\\/\\\/nemo.cool\\\/\",\"name\":\"Nemo\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/#\\\/schema\\\/person\\\/698f803ee811e2b140a90f5d5de913d2\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/nemo.cool\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/nemo.cool\\\/#\\\/schema\\\/person\\\/698f803ee811e2b140a90f5d5de913d2\",\"name\":\"Nemo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg\",\"url\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg\",\"contentUrl\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg\",\"caption\":\"Nemo\"},\"logo\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg\"},\"sameAs\":[\"https:\\\/\\\/nemo.cool\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Seaborn \u6570\u636e\u53ef\u89c6\u5316\u57fa\u7840 - Nemo","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/nemo.cool\/204.html","og_locale":"en_US","og_type":"article","og_title":"Seaborn \u6570\u636e\u53ef\u89c6\u5316\u57fa\u7840 - Nemo","og_description":"[TOC] \u539f\u6587\u662f\u5b9e\u9a8c\u697c\u7684\u5728\u7ebf\u6559\u7a0bSeaborn \u6570\u636e\u53ef\u89c6\u5316\u57fa\u7840\u8bfe\u7a0b\u7684\u539f\u6587\u6574\u7406\uff0c\u6dfb\u52a0\u4e86\u6240\u6709\u7684\u7ed3\u679c\u56fe\uff0c\u4fbf\u4e8e\u5b66\u4e60\u3002 \u4ecb\u7ecd Matplotlib \u662f\u652f\u6301 Python \u8bed\u8a00\u7684\u5f00\u6e90\u7ed8\u56fe\u5e93\uff0c\u56e0\u4e3a\u5176\u652f\u6301\u4e30\u5bcc\u7684\u7ed8\u56fe\u7c7b\u578b\u3001\u7b80\u5355\u7684\u7ed8\u56fe\u65b9\u5f0f\u4ee5\u53ca\u5b8c\u5584\u7684\u63a5\u53e3\u6587\u6863\uff0c\u6df1\u53d7 Python \u5de5\u7a0b\u5e08\u3001\u79d1\u7814\u5b66\u8005\u3001\u6570\u636e\u5de5\u7a0b\u5e08\u7b49\u5404\u7c7b\u4eba\u58eb\u7684\u559c\u6b22\u3002Seaborn \u662f\u4ee5 Matplotlib \u4e3a\u6838\u5fc3\u7684\u9ad8\u9636\u7ed8\u56fe\u5e93\uff0c\u65e0\u9700\u7ecf\u8fc7\u590d\u6742\u7684\u81ea\u5b9a\u4e49\u5373\u53ef\u7ed8\u5236\u51fa\u66f4\u52a0\u6f02\u4eae\u7684\u56fe\u5f62\uff0c\u975e\u5e38\u9002\u5408\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u63a2\u7d22\u3002 \u77e5\u8bc6\u70b9 \u5173\u8054\u56fe \u7c7b\u522b\u56fe \u5206\u5e03\u56fe \u56de\u5f52\u56fe \u77e9\u9635\u56fe \u7ec4\u5408\u56fe Seaborn \u4ecb\u7ecd Matplotlib \u5e94\u8be5\u662f\u57fa\u4e8e Python \u8bed\u8a00\u6700\u4f18\u79c0\u7684\u7ed8\u56fe\u5e93\u4e86\uff0c\u4f46\u662f\u5b83\u4e5f\u6709\u4e00\u4e2a\u5341\u5206\u4ee4\u4eba\u5934\u75bc\u7684\u95ee\u9898\uff0c\u90a3\u5c31\u662f\u592a\u8fc7\u4e8e\u590d\u6742\u4e86\u30023000 \u591a\u9875\u7684\u5b98\u65b9\u6587\u6863\uff0c\u4e0a\u5343\u4e2a\u65b9\u6cd5\u4ee5\u53ca\u6570\u4e07\u4e2a\u53c2\u6570\uff0c\u5c5e\u4e8e\u5178\u578b\u7684\u4f60\u53ef\u4ee5\u7528\u5b83\u505a\u4efb\u4f55\u4e8b\uff0c\u4f46\u53c8\u65e0\u4ece\u4e0b\u624b\u3002\u5c24\u5176\u662f\uff0c\u5f53\u4f60\u60f3\u901a\u8fc7 Matplotlib \u8c03\u51fa\u975e\u5e38\u6f02\u4eae\u7684\u6548\u679c\u65f6\uff0c\u5f80\u5f80\u4f1a\u4f24\u900f\u8111\u7b4b\uff0c\u975e\u5e38\u9ebb\u70e6\u3002 Seaborn \u57fa\u4e8e Matplotlib \u6838\u5fc3\u5e93\u8fdb\u884c\u4e86\u66f4\u9ad8\u9636\u7684 API \u5c01\u88c5\uff0c\u53ef\u4ee5\u8ba9\u4f60\u8f7b\u677e\u5730\u753b\u51fa\u66f4\u6f02\u4eae\u7684\u56fe\u5f62\u3002Seaborn \u7684\u6f02\u4eae\u4e3b\u8981\u4f53\u73b0\u5728\u914d\u8272\u66f4\u52a0\u8212\u670d\u3001\u4ee5\u53ca\u56fe\u5f62\u5143\u7d20\u7684\u6837\u5f0f\u66f4\u52a0\u7ec6\u817b\uff0c\u4e0b\u9762\u662f Seaborn \u5b98\u65b9\u7ed9\u51fa\u7684\u53c2\u8003\u56fe\u3002 Seaborn \u5177\u6709\u5982\u4e0b\u7279\u70b9\uff1a \u5185\u7f6e\u6570\u4e2a\u7ecf\u8fc7\u4f18\u5316\u7684\u6837\u5f0f\u6548\u679c\u3002 \u589e\u52a0\u8c03\u8272\u677f\u5de5\u5177\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u4e3a\u6570\u636e\u642d\u914d\u989c\u8272\u3002 \u5355\u53d8\u91cf\u548c\u53cc\u53d8\u91cf\u5206\u5e03\u7ed8\u56fe\u66f4\u4e3a\u7b80\u5355\uff0c\u53ef\u7528\u4e8e\u5bf9\u6570\u636e\u5b50\u96c6\u76f8\u4e92\u6bd4\u8f83\u3002 \u5bf9\u72ec\u7acb\u53d8\u91cf\u548c\u76f8\u5173\u53d8\u91cf\u8fdb\u884c\u56de\u5f52\u62df\u5408\u548c\u53ef\u89c6\u5316\u66f4\u52a0\u4fbf\u6377\u3002 \u5bf9\u6570\u636e\u77e9\u9635\u8fdb\u884c\u53ef\u89c6\u5316\uff0c\u5e76\u4f7f\u7528\u805a\u7c7b\u7b97\u6cd5\u8fdb\u884c\u5206\u6790\u3002 \u57fa\u4e8e\u65f6\u95f4\u5e8f\u5217\u7684\u7ed8\u5236\u548c\u7edf\u8ba1\u529f\u80fd\uff0c\u66f4\u52a0\u7075\u6d3b\u7684\u4e0d\u786e\u5b9a\u5ea6\u4f30\u8ba1\u3002 \u57fa\u4e8e\u7f51\u683c\u7ed8\u5236\u51fa\u66f4\u52a0\u590d\u6742\u7684\u56fe\u50cf\u96c6\u5408\u3002 \u9664\u6b64\u4e4b\u5916\uff0c Seaborn \u5bf9 Matplotlib \u548c Pandas \u7684\u6570\u636e\u7ed3\u6784\u9ad8\u5ea6\u517c\u5bb9 \uff0c\u975e\u5e38\u9002\u5408\u4f5c\u4e3a\u6570\u636e\u6316\u6398\u8fc7\u7a0b\u4e2d\u7684\u53ef\u89c6\u5316\u5de5\u5177\u3002 [&hellip;]","og_url":"https:\/\/nemo.cool\/204.html","og_site_name":"Nemo","article_published_time":"2019-06-20T15:03:11+00:00","article_modified_time":"2024-11-26T07:49:50+00:00","og_image":[{"width":356,"height":257,"url":"https:\/\/nemo.cool\/wp-content\/uploads\/2019\/06\/27.png","type":"image\/png"}],"author":"Nemo","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Nemo","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/nemo.cool\/204.html#article","isPartOf":{"@id":"https:\/\/nemo.cool\/204.html"},"author":{"name":"Nemo","@id":"https:\/\/nemo.cool\/#\/schema\/person\/698f803ee811e2b140a90f5d5de913d2"},"headline":"Seaborn \u6570\u636e\u53ef\u89c6\u5316\u57fa\u7840","datePublished":"2019-06-20T15:03:11+00:00","dateModified":"2024-11-26T07:49:50+00:00","mainEntityOfPage":{"@id":"https:\/\/nemo.cool\/204.html"},"wordCount":98,"commentCount":0,"publisher":{"@id":"https:\/\/nemo.cool\/#\/schema\/person\/698f803ee811e2b140a90f5d5de913d2"},"image":{"@id":"https:\/\/nemo.cool\/204.html#primaryimage"},"thumbnailUrl":"https:\/\/nemo.cool\/wp-content\/uploads\/2019\/06\/27.png","keywords":["Matplotlib","python","seaborn","\u673a\u5668\u5b66\u4e60"],"articleSection":["Dev","ML","Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/nemo.cool\/204.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/nemo.cool\/204.html","url":"https:\/\/nemo.cool\/204.html","name":"Seaborn \u6570\u636e\u53ef\u89c6\u5316\u57fa\u7840 - Nemo","isPartOf":{"@id":"https:\/\/nemo.cool\/#website"},"primaryImageOfPage":{"@id":"https:\/\/nemo.cool\/204.html#primaryimage"},"image":{"@id":"https:\/\/nemo.cool\/204.html#primaryimage"},"thumbnailUrl":"https:\/\/nemo.cool\/wp-content\/uploads\/2019\/06\/27.png","datePublished":"2019-06-20T15:03:11+00:00","dateModified":"2024-11-26T07:49:50+00:00","breadcrumb":{"@id":"https:\/\/nemo.cool\/204.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nemo.cool\/204.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nemo.cool\/204.html#primaryimage","url":"https:\/\/nemo.cool\/wp-content\/uploads\/2019\/06\/27.png","contentUrl":"https:\/\/nemo.cool\/wp-content\/uploads\/2019\/06\/27.png","width":356,"height":257},{"@type":"BreadcrumbList","@id":"https:\/\/nemo.cool\/204.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/nemo.cool\/"},{"@type":"ListItem","position":2,"name":"Seaborn \u6570\u636e\u53ef\u89c6\u5316\u57fa\u7840"}]},{"@type":"WebSite","@id":"https:\/\/nemo.cool\/#website","url":"https:\/\/nemo.cool\/","name":"Nemo","description":"","publisher":{"@id":"https:\/\/nemo.cool\/#\/schema\/person\/698f803ee811e2b140a90f5d5de913d2"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/nemo.cool\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/nemo.cool\/#\/schema\/person\/698f803ee811e2b140a90f5d5de913d2","name":"Nemo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nemo.cool\/wp-content\/uploads\/2024\/01\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg","url":"https:\/\/nemo.cool\/wp-content\/uploads\/2024\/01\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg","contentUrl":"https:\/\/nemo.cool\/wp-content\/uploads\/2024\/01\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg","caption":"Nemo"},"logo":{"@id":"https:\/\/nemo.cool\/wp-content\/uploads\/2024\/01\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg"},"sameAs":["https:\/\/nemo.cool"]}]}},"_links":{"self":[{"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/posts\/204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/comments?post=204"}],"version-history":[{"count":0,"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/posts\/204\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/media\/207"}],"wp:attachment":[{"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/media?parent=204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/categories?post=204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/tags?post=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}