{"id":5643,"date":"2020-06-03T22:32:52","date_gmt":"2020-06-03T14:32:52","guid":{"rendered":"https:\/\/vip.fxxkpython.com\/?p=5643"},"modified":"2020-06-03T22:32:55","modified_gmt":"2020-06-03T14:32:55","slug":"python-%e6%95%b0%e6%8d%ae%e5%8f%af%e8%a7%86%e5%8c%96-12-%e4%bd%bf%e7%94%a8-matplotlib-%e5%8f%af%e8%a7%86%e5%8c%96%e5%88%86%e6%9e%90%e8%82%a1%e7%a5%a8%e6%95%b0%e6%8d%ae","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=5643","title":{"rendered":"Python \u6570\u636e\u53ef\u89c6\u5316 12 | \u4f7f\u7528 matplotlib \u53ef\u89c6\u5316\u5206\u6790\u80a1\u7968\u6570\u636e"},"content":{"rendered":"\n<p>\u5728\u524d\u9762\u51e0\u7bc7\u4e2d\uff0c\u5c0f\u5e05b\u7ed9\u4f60\u8bf4\u4e86\u4e00\u4e9b\u6570\u636e\u5206\u6790\u5e93\u7684\u5e38\u7528\u64cd\u4f5c\uff0c\u63a5\u4e0b\u6765\u6211\u4f1a\u6574\u51e0\u4e2a\u771f\u5b9e\u7684\u6570\u636e\u53ef\u89c6\u5316\u9879\u76ee\u6f14\u793a\u7ed9\u4f60\u770b\u770b\uff0c\u4f60\u53ef\u4ee5\u4ece\u4e2d\u83b7\u53d6\u5230\u53ef\u89c6\u5316\u7684\u6570\u636e\u5206\u6790\u65b9\u6cd5\uff0c\u53ef\u4ee5\u770b\u5230\u6211\u4eec\u662f\u5982\u4f55\u5229\u7528\u4e4b\u524d\u6240\u8bf4\u7684\u5185\u5bb9\u8fdb\u884c\u5206\u6790\uff0c\u4e0b\u6b21\u4f60\u9047\u5230\u611f\u5174\u8da3\u7684\u6570\u636e\uff0c\u5c31\u53ef\u4ee5\u4ee5\u76f8\u540c\u7684\u65b9\u5f0f\uff0c\u53bb\u8fdb\u884c\u5206\u6790\u4e86\u3002<\/p>\n\n\n\n<p>\u90a3\u4e48\u4eca\u5929\u8fd9\u4e00\u7bc7\uff0c\u6211\u4eec\u5148\u6765\u4f7f\u7528 matplotlib \u6765\u73a9\u4e0b\u80a1\u7968\u6570\u636e\u7684\u53ef\u89c6\u5316\u3002<\/p>\n\n\n\n<h2>\u83b7\u53d6\u80a1\u7968\u6570\u636e<\/h2>\n\n\n\n<p>\u5173\u4e8e\u80a1\u7968\u6570\u636e\uff0c\u7f51\u4e0a\u5df2\u7ecf\u6709\u76f8\u5bf9\u6210\u719f\u7684\u63a5\u53e3\u4e86\uff0c\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528\u63a5\u53e3\u6765\u83b7\u53d6\u80a1\u7968\u7684\u6240\u6709\u6570\u636e\u3002<\/p>\n\n\n\n<p>\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e0b baostock \u8fd9\u4e2a\u5e93\u6765\u8c03\u7528\u5b83\u4eec\u7684\u80a1\u7968\u6570\u636e\u63a5\u53e3\u3002<\/p>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u901a\u8fc7 pip \u5b89\u88c5\u4e00\u6ce2\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>pip install baostock<\/p><\/blockquote>\n\n\n\n<p>\u5b89\u88c5\u5b8c\u4e4b\u540e\u5bfc\u5165\uff0c\u8c03\u7528 login \u65b9\u6cd5\uff0c\u8fd4\u56de\u767b\u5f55\u6210\u529f\u5c31\u53ef\u4ee5\u8c03\u7528\u63a5\u53e3\u6765\u83b7\u53d6\u76f8\u5173\u7684\u6570\u636e\u4e86\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"601\" height=\"209\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/06\/Screenshot-from-2020-06-03-16-22-11.png\" alt=\"\" class=\"wp-image-5644\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/06\/Screenshot-from-2020-06-03-16-22-11.png 601w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/06\/Screenshot-from-2020-06-03-16-22-11-300x104.png 300w\" sizes=\"(max-width: 601px) 100vw, 601px\" \/><\/figure><\/div>\n\n\n\n<p>\u80a1\u7968\u6570\u636e\u7684 API \u6587\u6863\u94fe\u63a5\u5982\u4e0b\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%3D5643\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div>\u63a5\u7740\u53ef\u89c6\u5316\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"584\" height=\"328\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/06\/Screenshot-from-2020-06-03-22-27-26.png\" alt=\"\" class=\"wp-image-5665\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/06\/Screenshot-from-2020-06-03-22-27-26.png 584w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/06\/Screenshot-from-2020-06-03-22-27-26-300x168.png 300w\" sizes=\"(max-width: 584px) 100vw, 584px\" \/><\/figure><\/div>\n\n\n\n<p>ok\uff0c\u4ee5\u4e0a\u5c31\u662f\u5bf9\u80a1\u7968\u5386\u53f2\u6570\u636e\u4ee5\u53ca\u80a1\u7968\u95f4\u7684\u6da8\u5e45\u5bf9\u6bd4\u8fdb\u884c\u53ef\u89c6\u5316\uff0c\u6211\u4eec\u4e0b\u7bc7<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u524d\u9762\u51e0\u7bc7\u4e2d\uff0c\u5c0f\u5e05b\u7ed9\u4f60\u8bf4\u4e86\u4e00\u4e9b\u6570\u636e\u5206\u6790\u5e93\u7684\u5e38\u7528\u64cd\u4f5c\uff0c\u63a5\u4e0b\u6765\u6211\u4f1a\u6574\u51e0\u4e2a\u771f\u5b9e\u7684\u6570\u636e\u53ef\u89c6\u5316\u9879\u76ee\u6f14\u793a\u7ed9\u4f60\u770b\u770b\uff0c\u4f60\u53ef\u4ee5\u4ece\u4e2d\u83b7\u53d6\u5230\u53ef\u89c6\u5316\u7684\u6570\u636e\u5206\u6790\u65b9\u6cd5\uff0c\u53ef\u4ee5\u770b\u5230\u6211\u4eec\u662f\u5982\u4f55\u5229\u7528\u4e4b\u524d\u6240\u8bf4\u7684\u5185\u5bb9\u8fdb\u884c\u5206\u6790\uff0c\u4e0b\u6b21\u4f60\u9047\u5230\u611f\u5174\u8da3\u7684\u6570\u636e\uff0c\u5c31\u53ef\u4ee5\u4ee5\u76f8\u540c\u7684\u65b9\u5f0f\uff0c\u53bb\u8fdb\u884c\u5206\u6790\u4e86\u3002 \u90a3&hellip;<\/p>\n","protected":false},"author":1,"featured_media":5665,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[393],"tags":[457,417,458,455,456],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/5643"}],"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=5643"}],"version-history":[{"count":3,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/5643\/revisions"}],"predecessor-version":[{"id":5666,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/5643\/revisions\/5666"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/media\/5665"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}