{"id":5359,"date":"2020-05-13T23:39:36","date_gmt":"2020-05-13T15:39:36","guid":{"rendered":"https:\/\/vip.fxxkpython.com\/?p=5359"},"modified":"2020-06-03T18:20:59","modified_gmt":"2020-06-03T10:20:59","slug":"python-%e6%95%b0%e6%8d%ae%e5%8f%af%e8%a7%86%e5%8c%96-08-%e6%95%b0%e6%8d%ae%e5%8f%af%e8%a7%86%e5%8c%96%e5%ba%93-matplotlib-%e7%9a%84%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=5359","title":{"rendered":"Python \u6570\u636e\u53ef\u89c6\u5316 08 | \u6570\u636e\u53ef\u89c6\u5316\u5e93 matplotlib \u7684\u4f7f\u7528"},"content":{"rendered":"\n<p>\u63a5\u4e0b\u6765\u7ed9\u4f60\u4ecb\u7ecd\u4e00\u4e9b\u5982\u4f55\u5c06\u6570\u636e\u8f6c\u5316\u6210\u76f4\u89c2\u7684\u56fe\uff0c\u6bd4\u5982\u76f4\u7ebf\u56fe\u3001\u6298\u7ebf\u56fe\u3001\u6563\u70b9\u56fe\u3001\u997c\u56fe\u7b49\u7b49\u3002<\/p>\n\n\n\n<p>\u4eca\u5929\u8981\u7ed9\u4f60\u4ecb\u7ecd\u7684\u662f matplotlib \u5e38\u7528\u56fe\u5f62\u7684\u7ed8\u5236\u65b9\u6cd5\uff0c\u5b83\u662f\u6570\u636e\u53ef\u89c6\u5316\u5e38\u88ab\u4f7f\u7528\u5230\u7684\u5e93\uff0c\u5f53\u7136\u8fd8\u6709\u57fa\u4e8e\u5b83\u6269\u5c55\u7684 Seaborn \uff0c\u4ee5\u53ca\u5176\u5b83\u7684\u5e93\u6211\u4f1a\u5f80\u540e\u7ed9\u4f60\u4ecb\u7ecd\u5b83\u4eec\u7684\u4f7f\u7528\uff0c\u6700\u540e\u5199\u51e0\u4e2a\u53ef\u89c6\u5316\u7684\u9879\u76ee\uff0c\u5206\u522b\u4f7f\u7528\u4e0d\u540c\u7684\u5e93\u8fdb\u884c\u5b9e\u73b0\uff0c\u5c06\u6211\u4eec\u4e4b\u524d\u5b66\u5230\u7684\u6570\u636e\u64cd\u4f5c\u548c\u63a5\u4e0b\u6765\u7684\u6570\u636e\u53ef\u89c6\u5316\u5e93\u7684\u4f7f\u7528\u7ed3\u5408\u8d77\u6765\u3002<\/p>\n\n\n\n<h2>matplotlib\uff1a\u6298\u7ebf\u56fe<\/h2>\n\n\n\n<p>\u9996\u5148\u5bfc\u5165 matplotlib<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"399\" height=\"62\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-13-21-42-08.png\" alt=\"\" class=\"wp-image-5361\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-13-21-42-08.png 399w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-13-21-42-08-300x47.png 300w\" sizes=\"(max-width: 399px) 100vw, 399px\" \/><\/figure><\/div>\n\n\n\n<p>\u63a5\u7740\u901a\u8fc7 np \u521b\u5efa\u968f\u673a\u6570\u7ec4\uff0c\u4f7f\u7528 pd \u521b\u5efa\u4e00\u4e2a Series\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"577\" height=\"287\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-13-21-44-48.png\" alt=\"\" class=\"wp-image-5362\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-13-21-44-48.png 577w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-13-21-44-48-300x149.png 300w\" sizes=\"(max-width: 577px) 100vw, 577px\" \/><\/figure><\/div>\n\n\n\n<p>\u50cf\u8fd9\u6837\u7684 Series \uff0c\u60f3\u8981\u7528\u6298\u7ebf\u56fe\u7684\u65b9\u5f0f\u5c55\u793a\uff0c\u53ef\u4ee5\u4f7f\u7528 plot \u65b9\u6cd5\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"588\" height=\"327\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-13-21-45-33.png\" alt=\"\" class=\"wp-image-5363\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-13-21-45-33.png 588w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-13-21-45-33-300x167.png 300w\" sizes=\"(max-width: 588px) 100vw, 588px\" \/><\/figure><\/div>\n\n\n\n<p>plot \u53ef\u4ee5\u6307\u5b9a\u663e\u793a\u7684\u6837\u5f0f\uff0c\u4f60\u4e5f\u53ef\u4ee5\u663e\u793a\u6a2a\u7ad6\u5750\u6807\u5206\u522b\u4ee3\u8868\u7684\u662f\u5565\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"567\" height=\"358\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-13-21-54-40.png\" alt=\"\" class=\"wp-image-5364\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-13-21-54-40.png 567w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-13-21-54-40-300x189.png 300w\" sizes=\"(max-width: 567px) 100vw, 567px\" \/><\/figure><\/div>\n\n\n\n<h2 id=\"mce_18\">matplotlib\uff1a\u76f4\u65b9\u56fe<\/h2>\n\n\n\n<p>\u76f4\u65b9\u56fe\u53ef\u4ee5\u4f7f\u7528 hist \u65b9\u6cd5\uff1a<div style=\"text-align:center;border:1px dashed #FF9A9A;padding:8px;margin:10px auto;color:#FF6666;\">\u672c\u6587\u9690\u85cf\u5185\u5bb9 <a href=\"https:\/\/vip.fxxkpython.com\/wp-login.php?redirect_to=https%3A%2F%2Fvip.fxxkpython.com%2F%3Fp%3D5359\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div>\u7136\u540e\u4f7f\u7528 boxplot \u65b9\u6cd5\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"613\" height=\"306\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-13-23-20-22.png\" alt=\"\" class=\"wp-image-5370\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-13-23-20-22.png 613w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/05\/Screenshot-from-2020-05-13-23-20-22-300x150.png 300w\" sizes=\"(max-width: 613px) 100vw, 613px\" \/><\/figure><\/div>\n\n\n\n<p>\u4ee5\u4e0a\u8fd9\u4e9b\u662f\u6700\u5e38\u7528\u5230\u7684\u56fe\uff0cmatplotlib \u80fd\u505a\u5f97\u4e5f\u89c9\u975e\u8fd9\u4e48\u4e9b\u56fe\uff0c\u5230\u65f6\u6211\u4eec\u9700\u8981\u4e0d\u540c\u7684\u56fe\u5c55\u793a\u6570\u636e\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u76f4\u63a5\u6765\u8fd9\u91cc<a href=\"https:\/\/matplotlib.org\/\">https:\/\/matplotlib.org\/&nbsp;<\/a>\u627e\u4e00\u6ce2\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a5\u4e0b\u6765\u7ed9\u4f60\u4ecb\u7ecd\u4e00\u4e9b\u5982\u4f55\u5c06\u6570\u636e\u8f6c\u5316\u6210\u76f4\u89c2\u7684\u56fe\uff0c\u6bd4\u5982\u76f4\u7ebf\u56fe\u3001\u6298\u7ebf\u56fe\u3001\u6563\u70b9\u56fe\u3001\u997c\u56fe\u7b49\u7b49\u3002 \u4eca\u5929\u8981\u7ed9\u4f60\u4ecb\u7ecd\u7684\u662f matplotlib \u5e38\u7528\u56fe\u5f62\u7684\u7ed8\u5236\u65b9\u6cd5\uff0c\u5b83\u662f\u6570\u636e\u53ef\u89c6\u5316\u5e38\u88ab\u4f7f\u7528\u5230\u7684\u5e93\uff0c\u5f53\u7136\u8fd8\u6709\u57fa\u4e8e\u5b83\u6269\u5c55\u7684 Seaborn \uff0c\u4ee5\u53ca\u5176\u5b83\u7684\u5e93\u6211\u4f1a\u5f80\u540e\u7ed9\u4f60\u4ecb\u7ecd\u5b83\u4eec\u7684&hellip;<\/p>\n","protected":false},"author":1,"featured_media":5368,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[393],"tags":[431,434,433,437,435,432,436],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/5359"}],"collection":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5359"}],"version-history":[{"count":3,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/5359\/revisions"}],"predecessor-version":[{"id":5654,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/5359\/revisions\/5654"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/media\/5368"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}