{"id":56904,"date":"2024-06-16T18:33:42","date_gmt":"2024-06-16T10:33:42","guid":{"rendered":"http:\/\/www.biocloudservice.com\/wordpress\/?p=56904"},"modified":"2024-06-16T18:33:42","modified_gmt":"2024-06-16T10:33:42","slug":"%e4%b8%89%e5%88%86%e9%92%9f%e7%94%a8seaborn%e7%bb%98%e5%88%b6%e7%b2%be%e7%be%8e%e7%83%ad%e5%9b%be-2","status":"publish","type":"post","link":"http:\/\/www.biocloudservice.com\/wordpress\/?p=56904","title":{"rendered":"\u4e09\u5206\u949f\u7528seaborn\u7ed8\u5236\u7cbe\u7f8e\u70ed\u56fe"},"content":{"rendered":"<p><html><br \/>\n<head><br \/>\n<title><\/title><br \/>\n<meta charset=\"utf-8\"><br \/>\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover\"><\/p>\n<style>\n*{margin:0;padding:0}html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:1.6}img{z-index:999;position:relative;max-width:100%;margin:10px 0;}body{letter-spacing:.034em}h1,h2,h3,h4,h5,h6{font-weight:400;font-size:16px}a{color:#576b95;text-decoration:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}td,th{word-wrap:break-word;padding:5px 10px;border:1px solid #DDD;}table{margin-bottom:10px;border-collapse:collapse;display:table;width:100%!important;}.appmsg_skin_default .rich_media_area_primary{background-color:#fff}.appmsg_skin_default .rich_media_area_primary .weui-loadmore_line .weui-loadmore__tips{background-color:#fff}.rich_media_area_primary{padding:20px 16px 12px;background-color:#fafafa}@media (max-width:375px){.rich_media_area_primary{padding:20px 60px 15px 60px}.rich_media_area_extra{padding:0 60px 21px 60px}}@media (min-width:1024px){.rich_media_area_primary_inner,.rich_media_area_extra_inner,body{max-width:677px;margin-left:auto;margin-right:auto}.rich_media_area_primary{padding-top:32px}}.rich_media{padding:20px;overflow:hidden;}.appmsg_skin_default .rich_media_area_primary{background-color:#fff}.appmsg_skin_default .rich_media_area_primary .weui-loadmore_line .weui-loadmore__tips{background-color:#fff}@media screen and (min-width:1024px){.rich_media_area_primary_inner,.rich_media_area_extra_inner{max-width:677px;margin-left:auto;margin-right:auto}.rich_media_area_primary{padding-top:32px}}.rich_media_content{overflow:hidden;color:#333;font-size:17px;word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;text-align:justify;position:relative;z-index:0}.rich_media_content *{max-width:100%!important;box-sizing:border-box!important;-webkit-box-sizing:border-box!important;word-wrap:break-word!important}.rich_media_content p{clear:both;min-height:1em}.rich_media_content em{font-style:italic}.rich_media_content fieldset{min-width:0}.rich_media_content .list-paddingleft-1,.rich_media_content .list-paddingleft-2,.rich_media_content .list-paddingleft-3{padding-left:2.2em}.rich_media_content .list-paddingleft-1 .list-paddingleft-2,.rich_media_content .list-paddingleft-2 .list-paddingleft-2,.rich_media_content .list-paddingleft-3 .list-paddingleft-2{padding-left:30px}.rich_media_content .list-paddingleft-1{padding-left:1.2em}.rich_media_content .list-paddingleft-3{padding-left:3.2em}.rich_media_content .code-snippet,.rich_media_content .code-snippet__fix{max-width:1000%!important}.rich_media_content .code-snippet *,.rich_media_content .code-snippet__fix *{max-width:1000%!important}.rich_media_title{font-size:22px;line-height:1.4;margin-bottom:13px;padding-bottom:13px;border-bottom:1px solid #e7e7eb;}@supports(-webkit-overflow-scrolling:touch){.rich_media_title{font-weight:700}}.rich_media_meta{display:inline-block;vertical-align:middle;padding:0 0 10px 0;font-size:15px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rich_media_meta.icon_appmsg_tag{margin-right:0px}.rich_media_meta.meta_tag_text{margin-right:0}.rich_media_meta_list em{font-style:normal}.rich_media_meta_text{color:#a5a5a5;}p{margin:0;}.msgBox{margin-top:20px;padding-top:20px;padding-left:50px;overflow:hidden;border-top:2px dashed #09a2ff;}.msg{padding-top:7px;clear:both;}.msgBody{float:right;width:100%;margin-left:55px;padding-bottom:15px;border-bottom:1px dashed #e0e0e0;}.userHeadImg{float:left;margin-left:-50px;}.userHeadImg img{width:40px;height:40px;margin-right:10px;border-radius:3px;}.userName{color:#888888;line-height:24px;font-size:14px;margin:5px 0 5px 0;height:24px;}.replyBody,.autherBody{color:#565656;font-size:15px;}.replyIcon{border-left:4px solid #33ab01;margin-right:5px;}.ad{text-decoration:none;color:#d6d4d4;font-size:12px;}.msgBodyReply{padding-top:5px;}.userName span{float:right;color:#afafaf;font-size:14px;}code{text-align:left;font-size:14px;display:block;white-space:pre;display:-webkit-box;display:-webkit-flex;display:flex;position:relative;}.code-snippet__fix{font-size:14px;margin:10px 0;display:block;color:#333;position:relative;background-color:rgba(0,0,0,0.03);border:1px solid #f0f0f0;border-radius:2px;display:-webkit-box;display:-webkit-flex;display:flex;padding-left:25px;line-height:26px}.code-snippet__fix code{text-align:left;font-size:14px;display:block;white-space:pre;display:-webkit-box;display:-webkit-flex;display:flex;position:relative;font-family:Consolas,\"Liberation Mono\",Menlo,Courier,monospace}.code-snippet__comment,.code-snippet__quote{color:#afafaf;font-style:italic}.code-snippet__keyword,.code-snippet__selector-tag,.code-snippet__subst{color:#ca7d37}.code-snippet__number,.code-snippet__literal,.code-snippet__variable,.code-snippet__template-variable,.code-snippet__tag .code-snippet__attr{color:#0e9ce5}.code-snippet__string,.code-snippet__doctag{color:#d14}.code-snippet__title,.code-snippet__section,.code-snippet__selector-id{color:#d14}.code-snippet__subst{font-weight:normal}.code-snippet__type,.code-snippet__class .code-snippet__title{color:#0e9ce5}.code-snippet__tag,.code-snippet__name,.code-snippet__attribute{color:#0e9ce5;font-weight:normal}.code-snippet__regexp,.code-snippet__link{color:#ca7d37}.code-snippet__symbol,.code-snippet__bullet{color:#d14}.code-snippet__built_in,.code-snippet__builtin-name{color:#ca7d37}.code-snippet__meta{color:#afafaf}.code-snippet__deletion{background:#fdd}.code-snippet__addition{background:#dfd}.code-snippet__emphasis{font-style:italic}.code-snippet__strong{font-weight:bold}.account_avatar{width:40px;height:40px;padding:0;}.account_info{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;padding:20px 0;align-items:center}.flex_bd{padding-left:14px;}.account_nickname{display:inline-block;vertical-align:middle;line-height:1.2;color:#576b95;font-size:14px}.account_desc{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;color:rgba(0,0,0,0.3);font-size:14px;line-height:1.2;padding-top:.4em}.msg_source_url{text-align:left;word-break:break-all;margin-top:20px;}.msg_source_url a{padding-right:10px;}.msg_source_url .url_text{color:#a8a8a8;}.video-desc{font-size:14px;margin-top:15px;color:#6c6c6c;}.msg_source_url{text-align:left;}.original_primary_card_tips{color:rgba(0,0,0,0.3);line-height:1.4;font-size:15px;}.weui-flex__item{margin-bottom:20px;padding:20px 16px;margin-top:16px;line-height:1.4;align-items:center;background-color:#f7f7f7;border-radius:8px;position:relative;}.original_primary_desc{color:rgba(0,0,0,0.5);font-size:14px;padding-top:4px;width:auto;overflow:hidden;text-overflow:ellipsis;}.msgBodyReplyList{border-top:1px solid #e1e1e1;margin-top:10px;}.msgBodyReplyListTop{border-top:0;}.reply_like_num{float:right;font-size:14px;color:#c7c7c7;}.msgData{margin-top:20px;color:#626262;}.msgData span{font-size:14px;padding-right:15px;}.msgData .likes{float:right;padding-right:0;}.js_text_content p{font-size:18px;}.rich_media_meta_link{font-size:15px;}blockquote {padding-left: 10px;border-left: 3px solid #dbdbdb;color: rgba(0,0,0,0.5);font-size: 15px;padding-top: 4px;margin: 1em 0;}.video_iframe{width:500px;height:400px;}.blockquote_info{color:#b5b5b5;margin-top:10px;}#copyright_logo{color:#bdbdbd;}.rich_media_meta_list{margin-bottom:10px;}.reprint{background:#efefef;border-radius:5px;padding:8px;color:#1f1f1f;}.reprint a{word-break:break-all;}.topic{color:#8e8e8e;background:#f7f7f7;border-radius:5px;padding:10px 8px;}.topic a{padding-right:5px;}.topic p{margin-bottom:5px;}\n<\/style>\n<link href=\"https:\/\/www.juyifx.cn\/config\/css\/wxArticle.css\" rel=\"stylesheet\"\/>\n<\/head><script>\nvar data={\"mp\":\"\u751f\u4fe1\u679c\",\"title\":\"\u4e09\u5206\u949f\u7528seaborn\u7ed8\u5236\u7cbe\u7f8e\u70ed\u56fe\",\"time\":\"2024-01-03 19:00:19\",\"timeStamp\":\"1704279619\"};\n<\/script><br \/>\n<body><\/p>\n<div class=\"rich_media\">\n<h1 class=\"rich_media_title\" id=\"activity-name\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg3OTg3MjQyNg==&#038;mid=2247498347&#038;idx=1&#038;sn=f500b3a2a23f97c4754a50767fcbb1e4&#038;chksm=cf7f6aaef808e3b88bff4cfcf10b2bf20cc619f15aaecb0f4b14d8c88ba9697f4a87da45b880#rd\" target=\"_blank\" rel=\"noopener\">\u4e09\u5206\u949f\u7528seaborn\u7ed8\u5236\u7cbe\u7f8e\u70ed\u56fe<\/a><\/h1>\n<div id=\"meta_content\" class=\"rich_media_meta_list\"><span id=\"copyright_logo\" class=\"wx_tap_link js_wx_tap_highlight rich_media_meta icon_appmsg_tag appmsg_title_tag weui-wa-hotarea\">\u539f\u521b&nbsp;&nbsp;<\/span><span class=\"rich_media_meta rich_media_meta_text\">\u5c0f\u679c&nbsp;&nbsp;<\/span><span class=\"rich_media_meta rich_media_meta_nickname\" id=\"profileBt\"><a href=\"javascript:void(0);\" class=\"wx_tap_link js_wx_tap_highlight weui-wa-hotarea\" id=\"js_name\">\u751f\u4fe1\u679c&nbsp;&nbsp;<\/a><\/span><em id=\"publish_time\" class=\"rich_media_meta rich_media_meta_text\">2024-01-03 19:00:19<\/em><\/div>\n<p><content><\/p>\n<div class=\"topic\">\n<p>\u6536\u5f55\u4e8e\u8bdd\u9898<\/p>\n<p><a href=\"https:\/\/mp.weixin.qq.com\/mp\/appmsgalbum?__biz=Mzg3OTg3MjQyNg==&#038;action=getalbum&#038;album_id=2821072943068839938#wechat_redirect\" title=\"\u751f\u4fe1\u7ed8\u56fe\" target=\"_blank\" rel=\"noopener\">#\u751f\u4fe1\u7ed8\u56fe<\/a><a href=\"https:\/\/mp.weixin.qq.com\/mp\/appmsgalbum?__biz=Mzg3OTg3MjQyNg==&#038;action=getalbum&#038;album_id=2664545260517294084#wechat_redirect\" title=\"\u751f\u4fe1\u5b9e\u64cd\" target=\"_blank\" rel=\"noopener\">#\u751f\u4fe1\u5b9e\u64cd<\/a><\/p>\n<\/div>\n<p data-mpa-powered-by=\"yiban.io\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;font-size: 15px;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100014482\" data-ratio=\"0.23333333333333334\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/1_rE2v0O5WiaUDJjgv5bxK2G1ePHyH2g-50.jpg?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/zcicibWZessAysHY49vPGCraibakiaNq6hQgn8C5MfvVLQGxlNZPEia2PajKAzrE2v0O5WiaUDJjgv5bxK2G1ePHyH2g\/640?wx_fmt=jpeg'\" data-type=\"jpeg\" data-w=\"1080\" style=\"letter-spacing: 0.578px;text-wrap: wrap;font-family: \u5b8b\u4f53;font-size: 15px;text-align: center;\"  data-recalc-dims=\"1\" \/>\u5927\u5bb6\u597d\uff0c\u5c0f\u679c\u56de\u6765\u5566\uff01<\/span><\/p>\n<p><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;font-size: 15px;\">\u6700\u8fd1\uff0c\u5c0f\u679c\u6df1\u5165\u7814\u7a76\u4e86\u70ed\u56fe\uff08Heatmap\uff09\uff0c\u5b83\u662f\u6570\u636e\u53ef\u89c6\u5316\u9886\u57df\u7684\u4e00\u9897\u7480\u74a8\u660e\u661f\u3002\u5b83\u80fd\u591f\u4ee5\u76f4\u89c2\u3001\u751f\u52a8\u7684\u65b9\u5f0f\u5c55\u793a\u6570\u636e\u4e4b\u95f4\u7684\u5173\u7cfb\u548c\u6a21\u5f0f\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5728\u6570\u636e\u7684\u6d77\u6d0b\u4e2d\u5bfb\u627e\u7ebf\u7d22\u3002<\/span><\/p>\n<p><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;font-size: 15px;\">\u5728\u6211\u4eec\u6df1\u5165\u63a2\u8ba8\u5982\u4f55\u4f7f\u7528Seaborn\u5e93\u6765\u7ed8\u5236\u70ed\u56fe\u4ee5\u53ca\u4e3a\u4ec0\u4e48\u9009\u62e9Seaborn\u4e4b\u524d\uff0c\u8ba9\u6211\u4eec\u5148\u6765\u4e86\u89e3\u4e00\u4e0b\u70ed\u56fe\u7684\u57fa\u672c\u6982\u5ff5\uff0c\u4ee5\u53ca\u5b83\u5728\u6570\u636e\u5206\u6790\u4e2d\u7684\u4e0d\u53ef\u6216\u7f3a\u4e4b\u5904\u3002\u8fd9\u4e2a\u65c5\u7a0b\u5c06\u5e26\u9886\u6211\u4eec\u8fdb\u5165\u6570\u636e\u7684\u795e\u5947\u4e16\u754c\uff0c\u4e00\u8d77\u6765\u63a2\u7d22\u5427\uff01<\/span><\/p>\n<p><span style=\"color: rgb(2, 30, 170);\"><strong><span style=\"color: rgb(2, 30, 170);font-size: 15px;\">\u70ed\u56fe\u7684\u57fa\u672c\u6982\u5ff5<\/span><\/strong><\/span><\/p>\n<p><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;font-size: 15px;\">\u70ed\u56fe\u7684\u6838\u5fc3\u601d\u60f3\u662f\u5c06\u6570\u636e\u96c6\u4e2d\u7684\u6570\u503c\u7528\u8272\u5f69\u8868\u793a\uff0c\u4ece\u800c\u5f62\u6210\u4e00\u4e2a\u77e9\u9635\u56fe\u3002\u901a\u5e38\uff0c\u70ed\u56fe\u5c06\u4e24\u4e2a\u7ef4\u5ea6\u7684\u6570\u636e\u4ee5\u77e9\u9635\u7684\u5f62\u5f0f\u5c55\u793a\uff0c\u5176\u4e2d\u4e00\u4e2a\u7ef4\u5ea6\u4ee3\u8868\u6570\u636e\u7684\u884c\uff0c\u53e6\u4e00\u4e2a\u4ee3\u8868\u5217\u3002\u6bcf\u4e2a\u5355\u5143\u683c\u7684\u989c\u8272\u6839\u636e\u6570\u636e\u503c\u7684\u5927\u5c0f\u800c\u53d8\u5316\uff0c\u4ece\u800c\u76f4\u89c2\u5730\u5448\u73b0\u4e86\u6570\u636e\u7684\u6a21\u5f0f\u3001\u5173\u8054\u548c\u5dee\u5f02\u3002<\/span><\/p>\n<p><span style=\"color: rgb(2, 30, 170);color: rgb(2, 30, 170);font-size: 15px;\"><strong>\u4e3a\u4ec0\u4e48\u4f7f\u7528\u70ed\u56fe\uff1f<\/strong><\/span><\/p>\n<p><span style=\"font-size: 15px;\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;font-weight: bold;\">\u6570\u636e\u5173\u7cfb\u53ef\u89c6\u5316<\/span><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;\">\uff1a\u70ed\u56fe\u80fd\u591f\u5e2e\u52a9\u6211\u4eec\u8fc5\u901f\u53d1\u73b0\u6570\u636e\u4e2d\u7684\u76f8\u5173\u6027\u548c\u8d8b\u52bf\u3002\u4f8b\u5982\uff0c\u5728\u751f\u7269\u5b66\u9886\u57df\uff0c\u53ef\u4ee5\u4f7f\u7528\u57fa\u56e0\u8868\u8fbe\u6570\u636e\u5236\u4f5c\u70ed\u56fe\uff0c\u4ee5\u89c2\u5bdf\u54ea\u4e9b\u57fa\u56e0\u5728\u4e0d\u540c\u6761\u4ef6\u4e0b\u8868\u73b0\u51fa\u76f8\u4f3c\u7684\u6a21\u5f0f\uff0c\u4ece\u800c\u8bc6\u522b\u6f5c\u5728\u7684\u751f\u7269\u5b66\u5173\u7cfb<\/span><\/span><\/p>\n<p><span style=\"font-size: 15px;letter-spacing: 0.034em;font-family: \u7b49\u7ebf;font-variant-numeric: normal;font-variant-east-asian: normal;font-variant-alternates: normal;font-variant-position: normal;font-weight: bold;\">\u6570\u636e\u964d\u7ef4<\/span><span style=\"font-size: 15px;letter-spacing: 0.034em;font-family: \u7b49\u7ebf;font-variant-numeric: normal;font-variant-east-asian: normal;font-variant-alternates: normal;font-variant-position: normal;\">\uff1a\u70ed\u56fe\u6709\u52a9\u4e8e\u5c06\u5927\u91cf\u6570\u636e\u538b\u7f29\u6210\u53ef\u7ba1\u7406\u7684\u56fe\u5f62\uff0c\u800c\u4e0d\u4f1a\u4e22\u5931\u91cd\u8981\u4fe1\u606f\u3002\u8fd9\u5bf9\u4e8e\u5927\u89c4\u6a21\u6570\u636e\u96c6\u7684\u5feb\u901f\u53ef\u89c6\u5316\u548c\u7406\u89e3\u975e\u5e38\u6709\u7528\u3002<\/span><\/p>\n<p><span style=\"font-size: 15px;letter-spacing: 0.034em;font-family: \u7b49\u7ebf;font-variant-numeric: normal;font-variant-east-asian: normal;font-variant-alternates: normal;font-variant-position: normal;font-weight: bold;\">\u8d8b\u52bf\u5206\u6790<\/span><span style=\"font-size: 15px;letter-spacing: 0.034em;font-family: \u7b49\u7ebf;font-variant-numeric: normal;font-variant-east-asian: normal;font-variant-alternates: normal;font-variant-position: normal;\">\uff1a\u70ed\u56fe\u53ef\u4ee5\u5e2e\u52a9\u60a8\u8bc6\u522b\u6570\u636e\u4e2d\u7684\u8d8b\u52bf\u548c\u5f02\u5e38\u3002\u901a\u8fc7\u89c2\u5bdf\u989c\u8272\u7684\u53d8\u5316\uff0c\u60a8\u53ef\u4ee5\u8bc6\u522b\u51fa\u6570\u636e\u4e2d\u7684\u9ad8\u70b9\u3001\u4f4e\u70b9\u548c\u5f02\u5e38\u503c\u3002<\/span><\/p>\n<p><span style=\"font-size: 15px;letter-spacing: 0.034em;font-family: \u7b49\u7ebf;font-variant-numeric: normal;font-variant-east-asian: normal;font-variant-alternates: normal;font-variant-position: normal;font-weight: bold;\">\u6570\u636e\u805a\u7c7b<\/span><span style=\"font-size: 15px;letter-spacing: 0.034em;font-family: \u7b49\u7ebf;font-variant-numeric: normal;font-variant-east-asian: normal;font-variant-alternates: normal;font-variant-position: normal;\">\uff1a\u70ed\u56fe\u5e38\u7528\u4e8e\u805a\u7c7b\u5206\u6790\uff0c\u5c06\u76f8\u4f3c\u7684\u6570\u636e\u9879\u5206\u7ec4\u5728\u4e00\u8d77\u3002\u8fd9\u6709\u52a9\u4e8e\u7406\u89e3\u6570\u636e\u7684\u7ed3\u6784\u5e76\u53d1\u73b0\u6f5c\u5728\u7684\u7fa4\u7ec4\u3002<\/span><span style=\"font-size: 15px;letter-spacing: 0.034em;\">&nbsp; &nbsp;&nbsp;<\/span><\/p>\n<p><strong style=\"color: rgb(2, 30, 170);font-size: 15px;letter-spacing: 0.034em;\">\u4e3a\u4ec0\u4e48\u9009\u62e9Seaborn\u6765\u7ed8\u5236\u70ed\u56fe\uff1f<\/strong><br  \/><\/p>\n<p><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;font-size: 15px;\">Seaborn\u662f\u4e00\u4e2a\u57fa\u4e8eMatplotlib\u7684Python\u6570\u636e\u53ef\u89c6\u5316\u5e93\uff0c\u4e3a\u4ec0\u4e48\u6211\u4eec\u66f4\u613f\u610f\u9009\u62e9Seaborn\u6765\u7ed8\u5236\u70ed\u56fe\uff0c\u800c\u4e0d\u662f\u4f7f\u7528Matplotlib\u6216R\u5462\uff1f\u4ee5\u4e0b\u662fSeaborn\u5728\u70ed\u56fe\u7ed8\u5236\u4e2d\u7684\u4e00\u4e9b\u4f18\u70b9\uff1a<\/span><\/p>\n<p><span style=\"font-size: 15px;\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;font-weight: bold;\">\u7f8e\u89c2\u6027<\/span><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;\">\uff1aSeaborn\u4ee5\u7f8e\u89c2\u7684\u9ed8\u8ba4\u6837\u5f0f\u8457\u79f0\uff0c\u56e0\u6b64\u60a8\u53ef\u4ee5\u8f7b\u677e\u521b\u5efa\u5177\u6709\u5438\u5f15\u529b\u7684\u70ed\u56fe\uff0c\u65e0\u9700\u592a\u591a\u81ea\u5b9a\u4e49\u3002<\/span><\/span><\/p>\n<p><span style=\"font-size: 15px;\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;font-weight: bold;\">\u7b80\u5316API<\/span><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;\">\uff1a\u76f8\u5bf9\u4e8eMatplotlib\uff0cSeaborn\u63d0\u4f9b\u4e86\u66f4\u7b80\u5355\u7684API\u6765\u521b\u5efa\u70ed\u56fe\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u4e00\u884c\u4ee3\u7801\u521b\u5efa\u4e00\u4e2a\u70ed\u56fe\uff0c\u800c\u65e0\u9700\u7f16\u5199\u5927\u91cf\u7684\u7ed8\u56fe\u4ee3\u7801\u3002<\/span><\/span><\/p>\n<p><span style=\"font-size: 15px;\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;font-weight: bold;\">\u7edf\u8ba1\u6570\u636e\u53ef\u89c6\u5316<\/span><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;\">\uff1aSeaborn\u4e13\u6ce8\u4e8e\u7edf\u8ba1\u6570\u636e\u53ef\u89c6\u5316\uff0c\u56e0\u6b64\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e9b\u9ad8\u7ea7\u529f\u80fd\uff0c\u5982\u5bf9\u6570\u636e\u8fdb\u884c\u5206\u7ec4\u3001\u7ed8\u5236\u4e0d\u540c\u5b50\u96c6\u7684\u70ed\u56fe\u7b49\u3002<\/span><\/span><\/p>\n<p><span style=\"font-size: 15px;\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;font-weight: bold;\">\u5185\u7f6e\u989c\u8272\u6620\u5c04<\/span><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;\">\uff1aSeaborn\u63d0\u4f9b\u4e86\u591a\u79cd\u5185\u7f6e\u7684\u989c\u8272\u6620\u5c04\uff0c\u4f7f\u60a8\u53ef\u4ee5\u8f7b\u677e\u9009\u62e9\u9002\u5408\u6570\u636e\u7684\u989c\u8272\uff0c\u800c\u4e0d\u5fc5\u81ea\u5df1\u5b9a\u4e49\u3002<\/span><\/span><\/p>\n<p><span style=\"font-size: 15px;\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;font-weight: bold;\">\u4e0ePandas\u96c6\u6210<\/span><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;\">\uff1aSeaborn\u4e0ePandas\u975e\u5e38\u517c\u5bb9\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u6570\u636e\u6846\u521b\u5efa\u70ed\u56fe\uff0c\u4e0d\u9700\u8981\u989d\u5916\u7684\u6570\u636e\u5904\u7406\u6b65\u9aa4\u3002<\/span>&nbsp; &nbsp;&nbsp;<\/span><\/p>\n<p><span style=\"font-size: 15px;\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;font-weight: bold;\">\u6d3b\u8dc3\u7684\u793e\u533a\u652f\u6301<\/span><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;\">\uff1aSeaborn\u6709\u4e00\u4e2a\u6d3b\u8dc3\u7684\u793e\u533a\uff0c\u63d0\u4f9b\u4e86\u5927\u91cf\u793a\u4f8b\u548c\u6587\u6863\uff0c\u4f7f\u5b66\u4e60\u548c\u4f7f\u7528\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\u3002<\/span><\/span><\/p>\n<section style=\"font-size: 16px;margin-bottom: 0px;\">\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row;margin-top: 10px;margin-bottom: 10px;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 100%;vertical-align: top;align-self: flex-start;flex: 0 0 auto;background-color: rgb(69, 107, 176);padding-right: 6px;padding-bottom: 6px;padding-left: 6px;\">\n<section style=\"margin-top: 10px;margin-bottom: 10px;transform: translate3d(19px, 0px, 0px);\" powered-by=\"xiumi.us\">\n<section style=\"text-align: justify;color: rgb(255, 255, 255);\">\n<p style=\"text-wrap: wrap;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<section style=\"justify-content: flex-start;display: flex;flex-flow: row;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 100%;vertical-align: top;align-self: flex-start;flex: 0 0 auto;background-color: rgb(255, 255, 255);padding: 23px;\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"margin-bottom: 0px;letter-spacing: 0.578px;text-wrap: wrap;font-size: 16px;background-color: rgb(255, 255, 255);\">\u516c\u4f17\u53f7\u540e\u53f0\u56de\u590d<span style=\"color: rgb(255, 41, 65);\">\u201c111\u201d<\/span>\u9886\u53d6\u672c\u7bc7\u4ee3\u7801\u3001\u57fa\u56e0\u96c6\u6216\u793a\u4f8b\u6570\u636e\u7b49\u6587\u4ef6\uff1b<\/p>\n<p style=\"margin-bottom: 0px;letter-spacing: 0.578px;text-wrap: wrap;font-size: 16px;background-color: rgb(255, 255, 255);\"><span style=\"text-decoration: underline;color: rgb(255, 41, 65);\"><em><strong>\u6587\u4ef6\u7f16\u53f7\uff1a231209<\/strong><\/em><\/span><\/p>\n<p style=\"margin-bottom: 0px;letter-spacing: 0.578px;text-wrap: wrap;font-size: 16px;background-color: rgb(255, 255, 255);\"><strong><span style=\"color: rgb(255, 41, 65);\">\u679c\u7c89\u798f\u5229<\/span><\/strong><span style=\"color: rgb(0, 128, 255);\"><strong>\uff1a\u751f\u4fe1\u4eba\u5fc5\u5907\u795e\u5668\u2014\u2014\u670d\u52a1\u5668<\/strong><\/span><br  \/><\/p>\n<p style=\"margin-bottom: 0px;letter-spacing: 0.578px;text-wrap: wrap;font-size: 16px;background-color: rgb(255, 255, 255);\">\u5e73\u65f6\u751f\u4fe1\u5206\u6790\u5b66\u4e60\u4e2d\u6709\u8981\u7684\u5c0f\u4f19\u4f34\u53ef\u4ee5\u8054\u7cfb\u5c0f\u679c\u79df\u8d41\uff0c\u7c89\u4e1d\u798f\u5229\u90fd\u662f\u5e02\u573a\u8d85\u4f4e\u4ef7\u683c\uff0c\u8d76\u5feb\u627e\u5c0f\u679c\u9886\u53d6\u514d\u8d39\u7684\u8bd5\u7528\u8d26\u53f7\u5427\uff01<\/p>\n<p style=\"margin-bottom: 0px;letter-spacing: 0.578px;text-wrap: wrap;font-size: 16px;background-color: rgb(255, 255, 255);\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg3OTg3MjQyNg==&amp;mid=2247495825&amp;idx=2&amp;sn=a22a72496a1c082ea5b827be94ce4d99&amp;chksm=cf7f6054f808e94264e14bfed4359cab3fcaaca249952a9f761c37ece352dcd7108579788b89&amp;scene=21#wechat_redirect\" textvalue=\"\u670d\u52a1\u5668\u4ef7\u683c\u914d\u7f6e\u8868\uff08\u70b9\u51fb\u94fe\u63a5\u67e5\u770b\uff09\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" rel=\"noopener\">\u670d\u52a1\u5668\u4ef7\u683c\u914d\u7f6e\u8868\uff08\u70b9\u51fb\u94fe\u63a5\u67e5\u770b\uff09<\/a><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p><span style=\"font-size: 15px;\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;\">\u4e0b\u9762\u8ba9\u6211\u4eec<\/span><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;letter-spacing: 0.4pt;background: rgb(255, 255, 255);\">\u4f7f\u7528Seaborn\u8fdb\u884c\u793a\u8303\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/span><\/span><span style=\"font-family: \u7b49\u7ebf;font-size: 15px;letter-spacing: 0.034em;\"><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"python\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">import<\/span> seaborn <span class=\"code-snippet__keyword\">as<\/span> sns <\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">import<\/span> pandas <span class=\"code-snippet__keyword\">as<\/span> pd <\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">import<\/span> numpy <span class=\"code-snippet__keyword\">as<\/span> np <\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">import<\/span> matplotlib.pyplot <span class=\"code-snippet__keyword\">as<\/span> plt <\/span><\/code><code><span class=\"code-snippet_outer\">           <\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u521b\u5efa\u4e00\u4e2a\u5305\u542b10\u884c10\u5217\u968f\u673a\u6570\u7684\u6570\u636e\u6846\uff0c\u5217\u540d\u4e3aa\u5230j<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">df = pd.DataFrame(np.random.random((<span class=\"code-snippet__number\">10<\/span>, <span class=\"code-snippet__number\">10<\/span>)), columns=[<span class=\"code-snippet__string\">\"a\"<\/span>, <span class=\"code-snippet__string\">\"b\"<\/span>, <span class=\"code-snippet__string\">\"c\"<\/span>, <span class=\"code-snippet__string\">\"d\"<\/span>, <span class=\"code-snippet__string\">\"e\"<\/span>, <span class=\"code-snippet__string\">\"f\"<\/span>, <span class=\"code-snippet__string\">\"g\"<\/span>, <span class=\"code-snippet__string\">\"h\"<\/span>, <span class=\"code-snippet__string\">\"i\"<\/span>, <span class=\"code-snippet__string\">\"j\"<\/span>])<\/span><\/code><code><span class=\"code-snippet_outer\">           <\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u7ed8\u5236\u4e00\u4e2a\u70ed\u529b\u56fe\uff0ccbar\u53c2\u6570\u8868\u793a\u4e0d\u663e\u793a\u989c\u8272\u6761<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">sns.heatmap(df, cbar=<span class=\"code-snippet__keyword\">False<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\">plt.show()<\/span><\/code><code><span class=\"code-snippet_outer\">           <\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u7ed8\u5236\u4e00\u4e2a\u70ed\u529b\u56fe\uff0c\u4f7f\u7528\u84dd\u8272\u8c03\u8272\u677f\uff08cmap=\"Blues\"\uff09<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">sns.heatmap(df, cmap=<span class=\"code-snippet__string\">\"Blues\"<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\">plt.show()<\/span><\/code><code><span class=\"code-snippet_outer\">               <\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u7ed8\u5236\u4e00\u4e2a\u70ed\u529b\u56fe\uff0c\u663e\u793a\u6bcf\u4e2a\u5355\u5143\u683c\u7684\u6570\u503c\uff0c\u8bbe\u7f6e\u6ce8\u91ca\u6587\u672c\u5b57\u4f53\u5927\u5c0f\u4e3a7<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">sns.heatmap(df, annot=<span class=\"code-snippet__keyword\">True<\/span>, annot_kws={<span class=\"code-snippet__string\">\"size\"<\/span>: <span class=\"code-snippet__number\">7<\/span>})<\/span><\/code><code><span class=\"code-snippet_outer\">plt.show()<\/span><\/code><code><span class=\"code-snippet_outer\">           <\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u7ed8\u5236\u4e00\u4e2a\u70ed\u529b\u56fe\uff0c\u589e\u52a0\u5355\u5143\u683c\u4e4b\u95f4\u7684\u7ebf\u5bbd\u4e3a2\uff0c\u7ebf\u7684\u989c\u8272\u4e3a\u9ec4\u8272<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">sns.heatmap(df, linewidths=<span class=\"code-snippet__number\">2<\/span>, linecolor=<span class=\"code-snippet__string\">'yellow'<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\">plt.show()<\/span><\/code><\/pre>\n<\/section>\n<p><span style=\"font-size: 15px;\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;\"><img decoding=\"async\" loading=\"lazy\" class=\"rich_pages wxw-img\" data-imgfileid=\"100014425\" data-ratio=\"0.75\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/2_MXz7famJ3uGdCy6PfmibrL6KR8fXoQ.png?resize=553%2C415\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/zcicibWZessAwaOtnqQlN0kicqNFL8Q1tVSRibCkgh4hVmic6sClcLkVPlq3qOMXz7famJ3uGdCy6PfmibrL6KR8fXoQ\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"640\" height=\"415 .3399658203125\" width=\"553 .739990234375\"  data-recalc-dims=\"1\" \/><\/span><\/span><\/p>\n<p><span style=\"font-size: 15px;\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;\">\u4fee\u6539\u8272\u8c03\u4e3a\u84dd\u8272\uff1a<\/span><\/span><\/p>\n<p><span style=\"font-size: 15px;\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;\"><img decoding=\"async\" loading=\"lazy\" class=\"rich_pages wxw-img\" data-imgfileid=\"100014424\" data-ratio=\"0.75\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/3_o0J8iboAiascrKWQwoUZbkSELFiaxA.png?resize=553%2C415\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/zcicibWZessAwaOtnqQlN0kicqNFL8Q1tVSJwEwpGaCqNp1eP22akj11486OgHo0J8iboAiascrKWQwoUZbkSELFiaxA\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"640\" height=\"415 .2099609375\" width=\"553 .6099853515625\"  data-recalc-dims=\"1\" \/><\/span><\/span><\/p>\n<p><span style=\"font-size: 15px;\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;\">\u4e3a\u6bcf\u4e2a\u5355\u5143\u683c\u586b\u5145\u6570\u503c\uff1a<\/span><\/span><\/p>\n<p><span style=\"font-size: 15px;\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;\"><img decoding=\"async\" loading=\"lazy\" class=\"rich_pages wxw-img\" data-imgfileid=\"100014428\" data-ratio=\"0.75\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/4_pymyoFLFIe4pyMCEwOKHcaJW9w2kRA.png?resize=553%2C415\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/zcicibWZessAwaOtnqQlN0kicqNFL8Q1tVSweVrudHXssatAXTl9VMvuCicCpymyoFLFIe4pyMCEwOKHcaJW9w2kRA\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"640\" height=\"415 .21002197265625\" width=\"553 .6099853515625\"  data-recalc-dims=\"1\" \/><\/span><\/span><\/p>\n<p><span style=\"font-size: 15px;\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;\">\u4f7f\u7528\u81ea\u5b9a\u4e49\u7f51\u683c\u7ebf\u7ed8\u5236\u70ed\u56fe\uff1a<\/span><\/span><\/p>\n<p><span style=\"font-size: 15px;\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;\"><img decoding=\"async\" loading=\"lazy\" class=\"rich_pages wxw-img\" data-imgfileid=\"100014426\" data-ratio=\"0.75\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/5_iaibdfqcKOmmMpa2txn5yicLnDTWWA.png?resize=553%2C415\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/zcicibWZessAwaOtnqQlN0kicqNFL8Q1tVSNNmMv740p75wpaI5dynaRicgcl0MiaibdfqcKOmmMpa2txn5yicLnDTWWA\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"640\" height=\"415 .2099609375\" width=\"553 .6099853515625\"  data-recalc-dims=\"1\" \/><\/span><\/span><\/p>\n<p><span style=\"font-size: 15px;\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100014487\" data-ratio=\"0.38981481481481484\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/6_IWicymEetCc6Enf2BkUE4Yz1Ya5e5w-2.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/zcicibWZessAyuYsqlJnQUJvnS2iciaDibtfbdV0VmHlriaSjYwjFPLp1BLjokHIWicymEetCc6Enf2BkUE4Yz1Ya5e5w\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1080\" style=\"letter-spacing: 0.578px;text-wrap: wrap;color: rgb(34, 34, 38);font-family: &quot;Times New Roman&quot;;font-size: 15px;font-weight: 700;background-color: rgb(255, 255, 255);text-align: center;\"  data-recalc-dims=\"1\" \/>\u5f53\u7136\u4e5f\u53ef\u4ee5\u7ed8\u5236\u597d\u770b\u7684\u805a\u7c7b\u70ed\u56fe\uff0c\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\u6240\u793a\uff1a&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br  \/><\/span><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"makefile\"><code><span class=\"code-snippet_outer\">import seaborn as sns     <\/span><\/code><code><span class=\"code-snippet_outer\">import pandas as pd<\/span><\/code><code><span class=\"code-snippet_outer\">from matplotlib import pyplot as plt<\/span><\/code><code><span class=\"code-snippet_outer\">           <\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u5bfc\u5165\u6570\u636e\u96c6<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">url = 'https:\/\/raw.githubusercontent.com\/holtzy\/The-Python-Graph-Gallery\/master\/static\/data\/mtcars.csv'<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u4ece\u7ed9\u5b9aURL\u8bfb\u53d6CSV\u6587\u4ef6\u5e76\u521b\u5efa\u4e00\u4e2a\u6570\u636e\u6846<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">df = pd.read_csv(url)<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u5c06'model'\u5217\u8bbe\u7f6e\u4e3a\u6570\u636e\u6846\u7684\u7d22\u5f15\uff0c\u4f5c\u4e3a\u884c\u6807\u7b7e<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">df = df.set_index('model')<\/span><\/code><code><span class=\"code-snippet_outer\">           <\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u51c6\u5907\u4e00\u4e2a\u989c\u8272\u5411\u91cf\uff0c\u6839\u636e'cyl'\u5217\u7684\u503c\u6620\u5c04\u989c\u8272<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">my_palette = dict(zip(df.cyl.unique(), [<span class=\"code-snippet__string\">\"orange\"<\/span>, <span class=\"code-snippet__string\">\"yellow\"<\/span>, <span class=\"code-snippet__string\">\"brown\"<\/span>]))<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u521b\u5efa\u4e00\u4e2a\u5b57\u5178\uff0c\u5c06\u552f\u4e00\u7684'cyl'\u503c\u4e0e\u989c\u8272\u76f8\u5bf9\u5e94\uff0c\u7136\u540e\u901a\u8fc7'map'\u65b9\u6cd5\u5c06\u989c\u8272\u6620\u5c04\u5230\u6bcf\u884c<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">row_colors = df.cyl.map(my_palette)<\/span><\/code><code><span class=\"code-snippet_outer\">           <\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u7ed8\u5236\u7c07\u72b6\u56fe<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">sns.clustermap(df, metric=<span class=\"code-snippet__string\">\"correlation\"<\/span>, method=<span class=\"code-snippet__string\">\"single\"<\/span>, cmap=<span class=\"code-snippet__string\">\"Blues\"<\/span>, standard_scale=1, row_colors=row_colors)<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \u4f7f\u7528Seaborn\u7684clustermap\u51fd\u6570\u7ed8\u5236\u805a\u7c7b\u70ed\u56fe\uff0c\u4f7f\u7528\"correlation\"\u4f5c\u4e3a\u76f8\u4f3c\u6027\u5ea6\u91cf\uff0c\"single\"\u4f5c\u4e3a\u805a\u7c7b\u65b9\u6cd5\uff0c\"Blues\"\u4f5c\u4e3a\u989c\u8272\u6620\u5c04\uff0c<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># \"standard_scale=1\"\u7528\u4e8e\u6807\u51c6\u5316\u6570\u636e\uff0crow_colors\u53c2\u6570\u5c06\u4e4b\u524d\u521b\u5efa\u7684\u989c\u8272\u5411\u91cf\u5e94\u7528\u4e8e\u884c<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">plt.show()<\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align:left;\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;font-size: 15px;\"><img decoding=\"async\" loading=\"lazy\" class=\"rich_pages wxw-img\" data-imgfileid=\"100014427\" data-ratio=\"0.5055555555555555\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/7_2bZB7Zmx3SByAD4l8ml7B9FFUwLXKw.png?resize=552%2C280\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/zcicibWZessAwaOtnqQlN0kicqNFL8Q1tVSZJMaORibuz5ibNOGibqmjl2yZBc2bZB7Zmx3SByAD4l8ml7B9FFUwLXKw\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1080\" height=\"280 .0\" width=\"552 .8099975585938\"  data-recalc-dims=\"1\" \/><\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: \u7b49\u7ebf;font-variant: normal;text-transform: none;font-size: 15px;\">\u4ee5\u4e0a\u4ee3\u7801\u5c31\u662f\u5bf9\u7ed8\u5236\u70ed\u56fe\u7684\u4ecb\u7ecd\u4e0eSeaborn\u7684\u57fa\u672c\u4f7f\u7528\u65b9\u6cd5\uff0c\u5f53\u7136\uff0c\u5927\u5bb6\u4e5f\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u548c\u7814\u7a76\u76ee\u6807\u4fee\u6539\u548c\u8c03\u8272\u54e6\uff01\u600e\u4e48\u6837\uff0c\u4f60\u5b66\u4f1a\u4e86\u561b\uff1f<\/span><\/p>\n<section powered-by=\"xiumi.us\" style=\"margin-bottom: 0px;\">\n<section>\n<section powered-by=\"xiumi.us\">\n<section>\n<section powered-by=\"xiumi.us\">\n<section>\n<section powered-by=\"xiumi.us\">\n<section>\n<section>\n<p><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100014429\" data-ratio=\"0.5555555555555556\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/8_VmRkv7tSNKliafDnsuFR7BoeDgBrww-2.jpg?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/zcicibWZessAxPqeNQsFjm2HibIuSld9Nh9GicQSWhJwHjia5tEevQvDIebLErVmRkv7tSNKliafDnsuFR7BoeDgBrww\/640?wx_fmt=jpeg&amp;from=appmsg'\" data-type=\"jpeg\" data-w=\"900\" style=\"font-size: var(--articleFontsize);letter-spacing: 0.034em;\"  data-recalc-dims=\"1\" \/><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"margin-top: 0pt;margin-bottom: 0pt;margin-left: 0pt;letter-spacing: 0.578px;text-indent: 0pt;text-wrap: wrap;text-align: justify;line-height: normal;font-size: 12pt;font-family: helvetica;color: rgb(0, 0, 0);break-after: auto;\"><span style=\"font-family: \u5b8b\u4f53;font-size: 12pt;text-indent: 0pt;color: rgba(0, 0, 0, 0.9);letter-spacing: 0.034em;\"><\/span><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;color: rgba(0, 0, 0, 0.9);letter-spacing: 0.034em;text-align: justify;\"><\/span><span style=\"font-size: var(--articleFontsize);letter-spacing: 0.034em;color: rgba(0, 0, 0, 0.9);font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;text-align: justify;\"><\/span><span style=\"font-size: 15px;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100014430\" data-ratio=\"0.38981481481481484\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/9_FbEg9fibwQicL8l2ExKOZZTmAHXabQ-3.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/zcicibWZessAx3HetBkB7aOGibFWKqibqIATyC4zFibzCgdrxFwRep6cDMLIbA0FbEg9fibwQicL8l2ExKOZZTmAHXabQ\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"1080\" style=\"font-size: var(--articleFontsize);letter-spacing: 0.034em;caret-color: rgba(0, 0, 0, 0);\"  data-recalc-dims=\"1\" \/><\/span><\/p>\n<section powered-by=\"xiumi.us\" style=\"margin-bottom: 0px;letter-spacing: 0.578px;text-wrap: wrap;outline: 0px;font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;background-color: rgb(255, 255, 255);text-align: left;\">\n<section style=\"outline: 0px;font-size: 16px;\">\n<section powered-by=\"xiumi.us\" style=\"margin: 10px;outline: 0px;justify-content: flex-start;display: flex;flex-flow: row;\">\n<section style=\"padding-right: 10px;padding-left: 10px;outline: 0px;display: inline-block;width: 558px;vertical-align: top;border-style: dashed;border-width: 1px;border-color: rgb(62, 62, 62);align-self: flex-start;flex: 0 0 auto;\">\n<section powered-by=\"xiumi.us\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;\">\n<section style=\"outline: 0px;display: inline-block;width: 536px;border-width: 0px 0px 0px 10px;border-style: solid;border-left-color: rgb(144, 215, 236);border-right-color: rgb(46, 172, 109);box-shadow: rgb(0, 0, 0) 0px 0px 0px;border-bottom-left-radius: 0px;\">\n<section powered-by=\"xiumi.us\" style=\"padding-right: 3px;padding-left: 3px;outline: 0px;\">\n<section style=\"margin-top: 0.95em;margin-bottom: -0.65em;outline: 0px;display: inline-block;width: 520px;vertical-align: top;\">\n<section style=\"margin-top: -1em;padding: 3px 10px;outline: 0px;display: inline-block;vertical-align: top;color: rgb(0, 154, 68);\">\n<p style=\"outline: 0px;\"><strong style=\"outline: 0px;\">\u5f80\u671f\u63a8\u8350<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section powered-by=\"xiumi.us\" style=\"outline: 0px;text-align: justify;\">\n<section style=\"outline: 0px;letter-spacing: 0.578px;line-height: 1.75em;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg3OTg3MjQyNg==&amp;mid=2247491794&amp;idx=1&amp;sn=2b7a4de95169c79202e44813885a8250&amp;chksm=cf7f7017f808f9015689839fe4057fd418bf7b20eb1dfb5a28cd92e56a41b5605e62bfbc16fb&amp;scene=21#wechat_redirect\" textvalue=\"1.\u642d\u5efa\u751f\u4fe1\u5206\u6790\u6d41\u6c34\u7ebf\uff0c\u5982\u5de5\u5382\u4e00\u683724\u5c0f\u65f6\u8fd0\u8f6cSnakemake\u2014\u2014\u8fdb\u9636\u547d\u4ee4\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" hasload=\"1\" style=\"color: var(--weui-LINK);outline: 0px;cursor: pointer;font-size: 14px;\" rel=\"noopener\">1.\u642d\u5efa\u751f\u4fe1\u5206\u6790\u6d41\u6c34\u7ebf\uff0c\u5982\u5de5\u5382\u4e00\u683724\u5c0f\u65f6\u8fd0\u8f6cSnakemake\u2014\u2014\u8fdb\u9636\u547d\u4ee4<\/a><br style=\"outline: 0px;\"  \/><\/section>\n<section style=\"outline: 0px;letter-spacing: 0.578px;line-height: 1.75em;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg3OTg3MjQyNg==&amp;mid=2247491705&amp;idx=1&amp;sn=9ff9b6da28b3a256a99c6697d589be66&amp;chksm=cf7f70bcf808f9aafd1019a0bba3dd3a55e2867dbb9a09203f13c2683adf867094637c405ed1&amp;scene=21#wechat_redirect\" textvalue=\"2.\u6bd4blast\u8fd8\u4f18\u79c0\u7684\u5e8f\u5217\u6bd4\u5bf9\u5de5\u5177\uff1fHMMER\u6765\u4e86\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" hasload=\"1\" style=\"color: var(--weui-LINK);outline: 0px;cursor: pointer;font-size: 14px;\" rel=\"noopener\">2.\u6bd4blast\u8fd8\u4f18\u79c0\u7684\u5e8f\u5217\u6bd4\u5bf9\u5de5\u5177\uff1fHMMER\u6765\u4e86<\/a><\/section>\n<section style=\"outline: 0px;letter-spacing: 0.578px;line-height: 1.75em;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg3OTg3MjQyNg==&amp;mid=2247491909&amp;idx=1&amp;sn=902e34bcf53e605fba2b457ec6a33e36&amp;chksm=cf7f7180f808f8961542f458a49da14e85d8831449fb65fbf2623d55affc564686a5422f56fd&amp;scene=21#wechat_redirect\" textvalue=\"3.\u5bf9\u5355\u7ec6\u80de\u5206\u6790\u6beb\u65e0\u5934\u7eea\uff1f\u8ba9popsicleR\u9886\u4f60\u5165\u95e8\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" hasload=\"1\" style=\"color: var(--weui-LINK);outline: 0px;cursor: pointer;font-size: 14px;\" rel=\"noopener\">3.\u5bf9\u5355\u7ec6\u80de\u5206\u6790\u6beb\u65e0\u5934\u7eea\uff1f\u8ba9popsicleR\u9886\u4f60\u5165\u95e8<\/a><\/section>\n<section style=\"outline: 0px;letter-spacing: 0.578px;line-height: 1.75em;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg3OTg3MjQyNg==&amp;mid=2247491905&amp;idx=1&amp;sn=fb34ebd6282962c7803badaee7a39096&amp;chksm=cf7f7184f808f8929608c0050344ad86193d0fc6455c1c18e16cc17bf4b37832b63d3b18284e&amp;scene=21#wechat_redirect\" textvalue=\"4.\u5c0f\u679c\u5e26\u4f60\u7ed8\u5236ROC\u66f2\u7ebf\u8bc4\u4f30\u751f\u5b58\u9884\u6d4b\u80fd\u529b\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" hasload=\"1\" style=\"color: var(--weui-LINK);outline: 0px;cursor: pointer;\" rel=\"noopener\"><span style=\"outline: 0px;font-size: 14px;\">4.\u5c0f\u679c\u5e26\u4f60\u7ed8\u5236ROC\u66f2\u7ebf\u8bc4\u4f30\u751f\u5b58\u9884\u6d4b\u80fd\u529b<\/span><\/a><\/section>\n<section style=\"outline: 0px;letter-spacing: 0.578px;line-height: 1.75em;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg3OTg3MjQyNg==&amp;mid=2247493633&amp;idx=1&amp;sn=2263dfe7572c0bcf6816c2c1a37d79de&amp;chksm=cf7f78c4f808f1d2209321d6ace39fde5fa60c0691b56f88eac21916f5a2872ce8ee345f1d5f&amp;scene=21#wechat_redirect\" textvalue=\"\u8f6f\u4ef6\u5305\u5b89\u88c5\u3001\u6253\u602a\u5feb\u53c8\u597d\uff0c1024G\u5b58\u50a8\u7684\u751f\u4fe1\u670d\u52a1\u5668\uff1b\u8fd8\u6709\u6bd4\u8fd9\u66f4\u7701\u94b1\u7684\u561b\uff01\uff01\uff01\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" hasload=\"1\" style=\"color: var(--weui-LINK);outline: 0px;cursor: pointer;letter-spacing: 0.578px;font-size: 14px;\" rel=\"noopener\">5.\u8f6f\u4ef6\u5305\u5b89\u88c5\u3001\u6253\u602a\u5feb\u53c8\u597d\uff0c1024G\u5b58\u50a8\u7684\u751f\u4fe1\u670d\u52a1\u5668\uff1b\u8fd8\u6709\u6bd4\u8fd9\u66f4\u7701\u94b1\u7684\u561b\uff01\uff01\uff01<\/a><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<p><\/content>\n<\/div>\n<p><\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e09\u5206\u949f\u7528seaborn\u7ed8\u5236\u7cbe\u7f8e\u70ed\u56fe \u539f\u521b&nbsp;&nbsp;\u5c0f\u679c&nbsp;&nbsp;\u751f\u4fe1\u679c&nbsp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/56904"}],"collection":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=56904"}],"version-history":[{"count":1,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/56904\/revisions"}],"predecessor-version":[{"id":56914,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/56904\/revisions\/56914"}],"wp:attachment":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=56904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=56904"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=56904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}