{"id":2272,"date":"2023-07-23T00:05:40","date_gmt":"2023-07-23T00:05:40","guid":{"rendered":"https:\/\/statorials.org\/cn\/matplotlib-python-%e8%9c%a1%e7%83%9b%e5%9b%be\/"},"modified":"2023-07-23T00:05:40","modified_gmt":"2023-07-23T00:05:40","slug":"matplotlib-python-%e8%9c%a1%e7%83%9b%e5%9b%be","status":"publish","type":"post","link":"https:\/\/statorials.org\/cn\/matplotlib-python-%e8%9c%a1%e7%83%9b%e5%9b%be\/","title":{"rendered":"\u5982\u4f55\u5728 python \u4e2d\u4f7f\u7528 matplotlib \u521b\u5efa\u70db\u53f0\u56fe"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><a href=\"https:\/\/en.wikipedia.org\/wiki\/Candlestick_chart\" target=\"_blank\" rel=\"noopener\">\u70db\u53f0\u56fe<\/a>\u662f\u4e00\u79cd\u91d1\u878d\u56fe\u8868\uff0c\u663e\u793a\u8bc1\u5238\u968f\u65f6\u95f4\u7684\u4ef7\u683c\u53d8\u52a8\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528 Python \u4e2d\u7684<a href=\"https:\/\/matplotlib.org\/\" target=\"_blank\" rel=\"noopener\">Matplotlib<\/a>\u53ef\u89c6\u5316\u5e93\u521b\u5efa\u70db\u53f0\u56fe\u3002<\/span><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u793a\u4f8b\uff1a\u7528 Python \u521b\u5efa\u70db\u53f0\u56fe<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u5047\u8bbe\u6211\u4eec\u6709\u4ee5\u4e0b pandas DataFrame\uff0c\u5b83\u663e\u793a\u4e86\u67d0\u53ea\u80a1\u7968\u5728 8 \u5929\u5185\u7684\u5f00\u76d8\u4ef7\u3001\u6536\u76d8\u4ef7\u3001\u6700\u9ad8\u4ef7\u548c\u6700\u4f4e\u4ef7\uff1a<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">import<\/span> pandas <span style=\"color: #008000;\">as<\/span> pd\n\n<span style=\"color: #008080;\">#createDataFrame\n<span style=\"color: #000000;\">prices = pd. <span style=\"color: #3366ff;\">DataFrame<\/span> ({' <span style=\"color: #ff0000;\">open<\/span> ': [25, 22, 21, 19, 23, 21, 25, 29],\n                       ' <span style=\"color: #ff0000;\">close<\/span> ': [24, 20, 17, 23, 22, 25, 29, 31],\n                       ' <span style=\"color: #ff0000;\">high<\/span> ': [28, 27, 29, 25, 24, 26, 31, 37],\n                       ' <span style=\"color: #ff0000;\">low<\/span> ': [22, 16, 14, 17, 19, 18, 22, 26]},\n                       index=pd. <span style=\"color: #3366ff;\">date_range<\/span> (\" <span style=\"color: #ff0000;\">2021-01-01<\/span> \", periods=8, freq=\" <span style=\"color: #ff0000;\">d<\/span> \"))\n\n<span style=\"color: #008080;\">#display DataFrame\n<\/span><span style=\"color: #008000;\">print<\/span> (prices)\n\n            open close high low\n2021-01-01 25 24 28 22\n2021-01-02 22 20 27 16\n2021-01-03 21 17 29 14\n2021-01-04 19 23 25 17\n2021-01-05 23 22 24 19\n2021-01-06 21 25 26 18\n2021-01-07 25 29 31 22\n2021-01-08 29 31 37 26\n<\/span><\/span><\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u521b\u5efa\u70db\u53f0\u56fe\uff0c\u4ee5\u53ef\u89c6\u5316\u8be5\u80a1\u7968\u5728\u8fd9 8 \u5929\u5185\u7684\u4ef7\u683c\u53d8\u52a8\uff1a<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">import<\/span> matplotlib. <span style=\"color: #3366ff;\">pyplot<\/span> <span style=\"color: #008000;\">as<\/span> plt\n\n<span style=\"color: #008080;\">#create figure\n<\/span>plt. <span style=\"color: #3366ff;\">figure<\/span> ()\n\n<span style=\"color: #008080;\">#define width of candlestick elements\n<\/span>width = .4\nwidth2 = .05\n\n<span style=\"color: #008080;\">#define up and down prices\n<\/span>up = prices[prices. <span style=\"color: #3366ff;\">close<\/span> &gt;=prices. <span style=\"color: #3366ff;\">open<\/span> ]\ndown = prices[prices. <span style=\"color: #3366ff;\">close<\/span> &lt;prices. <span style=\"color: #3366ff;\">open<\/span> ]\n\n<span style=\"color: #008080;\">#define colors to use\n<\/span>col1 = ' <span style=\"color: #ff0000;\">green<\/span> '\ncol2 = ' <span style=\"color: #ff0000;\">red<\/span> '\n\n<span style=\"color: #008080;\">#plot up prices\n<\/span>plt. <span style=\"color: #3366ff;\">bar<\/span> (up. <span style=\"color: #3366ff;\">index<\/span> , up. <span style=\"color: #3366ff;\">close<\/span> -up. <span style=\"color: #3366ff;\">open<\/span> , width, bottom=up. <span style=\"color: #3366ff;\">open<\/span> , color=col1)\nplt. <span style=\"color: #3366ff;\">bar<\/span> (up. <span style=\"color: #3366ff;\">index<\/span> ,up. <span style=\"color: #3366ff;\">high<\/span> -up. <span style=\"color: #3366ff;\">close<\/span> ,width2,bottom=up. <span style=\"color: #3366ff;\">close<\/span> ,color=col1)\nplt. <span style=\"color: #3366ff;\">bar<\/span> (up. <span style=\"color: #3366ff;\">index<\/span> , up. <span style=\"color: #3366ff;\">low<\/span> -up. <span style=\"color: #3366ff;\">open<\/span> , width2, bottom=up. <span style=\"color: #3366ff;\">open<\/span> , color=col1)\n\n<span style=\"color: #008080;\">#plot down prices\n<\/span>plt. <span style=\"color: #3366ff;\">bar<\/span> (down. <span style=\"color: #3366ff;\">index<\/span> , down. <span style=\"color: #3366ff;\">close<\/span> -down. <span style=\"color: #3366ff;\">open<\/span> , width, bottom=down. <span style=\"color: #3366ff;\">open<\/span> , color=col2)\nplt. <span style=\"color: #3366ff;\">bar<\/span> (down. <span style=\"color: #3366ff;\">index<\/span> , down. <span style=\"color: #3366ff;\">high<\/span> -down. <span style=\"color: #3366ff;\">open<\/span> , width2, bottom=down. <span style=\"color: #3366ff;\">open<\/span> , color=col2)\nplt. <span style=\"color: #3366ff;\">bar<\/span> (down. <span style=\"color: #3366ff;\">index<\/span> ,down. <span style=\"color: #3366ff;\">low<\/span> -down. <span style=\"color: #3366ff;\">close<\/span> ,width2,bottom=down. <span style=\"color: #3366ff;\">close<\/span> ,color=col2)\n\n<span style=\"color: #008080;\">#rotate x-axis tick labels\n<\/span>plt. <span style=\"color: #3366ff;\">xticks<\/span> (rotation= <span style=\"color: #008000;\">45<\/span> , ha=' <span style=\"color: #ff0000;\">right<\/span> ')\n\n<span style=\"color: #008080;\">#display candlestick chart\n<\/span>plt. <span style=\"color: #3366ff;\">show<\/span> ()<\/span><\/span><\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-20700\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/bougie1.png\" alt=\"\u5728 Python \u4e2d\u4f7f\u7528 matplotlib \u7ed8\u5236\u70db\u53f0\u56fe\" width=\"504\" height=\"431\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p><span style=\"color: #000000;\">\u6bcf\u4e2a\u70db\u53f0\u4ee3\u8868\u7279\u5b9a\u65e5\u671f\u8bc1\u5238\u4ef7\u683c\u7684\u53d8\u5316\u3002\u70db\u53f0\u7684\u989c\u8272\u544a\u8bc9\u6211\u4eec\u4e0e\u524d\u4e00\u5929\u76f8\u6bd4\u6536\u76d8\u4ef7\u683c\u662f\u4e0a\u6da8\uff08\u7eff\u8272\uff09\u8fd8\u662f\u4e0b\u8dcc\uff08\u7ea2\u8272\uff09\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u60a8\u53ef\u4ee5\u968f\u610f\u66f4\u6539\u70db\u53f0\u7684\u5bbd\u5ea6\u548c\u989c\u8272\uff0c\u4ee5\u4f7f\u56fe\u8868\u6309\u7167\u60a8\u60f3\u8981\u7684\u65b9\u5f0f\u663e\u793a\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u8721\u70db\u66f4\u7ec6\uff0c\u5e76\u4f7f\u7528\u4e0d\u540c\u7684\u989c\u8272\u6765\u4ee3\u8868\u201c\u9ad8\u201d\u548c\u201c\u4f4e\u201d\u5929\uff1a<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">import<\/span> matplotlib. <span style=\"color: #3366ff;\">pyplot<\/span> <span style=\"color: #008000;\">as<\/span> plt\n\n#create figure\nplt. <span style=\"color: #3366ff;\">figure<\/span> ()\n\n<span style=\"color: #008080;\">#define width of candlestick elements\n<\/span>width = .2\nwidth2 = .02\n\n<span style=\"color: #008080;\">#define up and down prices\n<\/span>up = prices[prices. <span style=\"color: #3366ff;\">close<\/span> &gt;=prices. <span style=\"color: #3366ff;\">open<\/span> ]\ndown = prices[prices. <span style=\"color: #3366ff;\">close<\/span> &lt;prices. <span style=\"color: #3366ff;\">open<\/span> ]\n\n<span style=\"color: #008080;\">#define colors to use\n<\/span>col1 = ' <span style=\"color: #ff0000;\">black<\/span> '\ncol2 = ' <span style=\"color: #ff0000;\">steelblue<\/span> '\n\n<span style=\"color: #008080;\">#plot up prices\n<\/span>plt. <span style=\"color: #3366ff;\">bar<\/span> (up. <span style=\"color: #3366ff;\">index<\/span> , up. <span style=\"color: #3366ff;\">close<\/span> -up. <span style=\"color: #3366ff;\">open<\/span> , width, bottom=up. <span style=\"color: #3366ff;\">open<\/span> , color=col1)\nplt. <span style=\"color: #3366ff;\">bar<\/span> (up. <span style=\"color: #3366ff;\">index<\/span> ,up. <span style=\"color: #3366ff;\">high<\/span> -up. <span style=\"color: #3366ff;\">close<\/span> ,width2,bottom=up. <span style=\"color: #3366ff;\">close<\/span> ,color=col1)\nplt. <span style=\"color: #3366ff;\">bar<\/span> (up. <span style=\"color: #3366ff;\">index<\/span> , up. <span style=\"color: #3366ff;\">low<\/span> -up. <span style=\"color: #3366ff;\">open<\/span> , width2, bottom=up. <span style=\"color: #3366ff;\">open<\/span> , color=col1)\n\n<span style=\"color: #008080;\">#plot down prices\n<\/span>plt. <span style=\"color: #3366ff;\">bar<\/span> (down. <span style=\"color: #3366ff;\">index<\/span> , down. <span style=\"color: #3366ff;\">close<\/span> -down. <span style=\"color: #3366ff;\">open<\/span> , width, bottom=down. <span style=\"color: #3366ff;\">open<\/span> , color=col2)\nplt. <span style=\"color: #3366ff;\">bar<\/span> (down. <span style=\"color: #3366ff;\">index<\/span> , down. <span style=\"color: #3366ff;\">high<\/span> -down. <span style=\"color: #3366ff;\">open<\/span> , width2, bottom=down. <span style=\"color: #3366ff;\">open<\/span> , color=col2)\nplt. <span style=\"color: #3366ff;\">bar<\/span> (down. <span style=\"color: #3366ff;\">index<\/span> ,down. <span style=\"color: #3366ff;\">low<\/span> -down. <span style=\"color: #3366ff;\">close<\/span> ,width2,bottom=down. <span style=\"color: #3366ff;\">close<\/span> ,color=col2)\n\n<span style=\"color: #008080;\">#rotate x-axis tick labels\n<\/span>plt. <span style=\"color: #3366ff;\">xticks<\/span> (rotation= <span style=\"color: #008000;\">45<\/span> , ha=' <span style=\"color: #ff0000;\">right<\/span> ')\n\n<span style=\"color: #008080;\">#display candlestick chart\n<\/span>plt. <span style=\"color: #3366ff;\">show<\/span> ()<\/span><\/span><\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-20701 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/bougie2.png\" alt=\"\" width=\"484\" height=\"401\" srcset=\"\" sizes=\"auto, \"><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u5176\u4ed6\u8d44\u6e90<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u6559\u7a0b\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728 Python \u4e2d\u521b\u5efa\u5176\u4ed6\u5e38\u89c1\u56fe\u8868\uff1a<\/span><\/p>\n<p><a href=\"https:\/\/statorials.org\/cn\/matplotlib-\u591a\u56fe\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u5728\u5355\u4e2a\u56fe\u5f62\u4e0a\u521b\u5efa\u591a\u4e2a Matplotlib \u56fe<\/a><br \/><a href=\"https:\/\/statorials.org\/cn\/python-\u76f4\u65b9\u56fe\u5217\u8868\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u5728 Python \u4e2d\u4ece\u6570\u636e\u5217\u8868\u4e2d\u7ed8\u5236\u76f4\u65b9\u56fe<\/a><br \/><a href=\"https:\/\/statorials.org\/cn\/matplotlib-\u5206\u7ec4\u7bb1\u7ebf\u56fe\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u5728 Python \u4e2d\u6309\u7ec4\u521b\u5efa\u7bb1\u7ebf\u56fe<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u70db\u53f0\u56fe\u662f\u4e00\u79cd\u91d1\u878d\u56fe\u8868\uff0c\u663e\u793a\u8bc1\u5238\u968f\u65f6\u95f4\u7684\u4ef7\u683c\u53d8\u52a8\u3002 \u4ee5\u4e0b\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528 Python \u4e2d\u7684Matplotli [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-2272","post","type-post","status-publish","format-standard","hentry","category-11"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u5728 Python \u4e2d\u4f7f\u7528 Matplotlib \u521b\u5efa\u70db\u53f0\u56fe - Statorials<\/title>\n<meta name=\"description\" content=\"\u672c\u6559\u7a0b\u901a\u8fc7\u4e00\u4e2a\u793a\u4f8b\u89e3\u91ca\u4e86\u5982\u4f55\u4f7f\u7528 Python \u4e2d\u7684 Matplotlib \u53ef\u89c6\u5316\u5e93\u521b\u5efa\u70db\u53f0\u56fe\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/cn\/matplotlib-python-\u8721\u70db\u56fe\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u5728 Python \u4e2d\u4f7f\u7528 Matplotlib \u521b\u5efa\u70db\u53f0\u56fe - Statorials\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6559\u7a0b\u901a\u8fc7\u4e00\u4e2a\u793a\u4f8b\u89e3\u91ca\u4e86\u5982\u4f55\u4f7f\u7528 Python \u4e2d\u7684 Matplotlib \u53ef\u89c6\u5316\u5e93\u521b\u5efa\u70db\u53f0\u56fe\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/cn\/matplotlib-python-\u8721\u70db\u56fe\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-23T00:05:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/bougie1.png\" \/>\n<meta name=\"author\" content=\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/cn\/matplotlib-python-%e8%9c%a1%e7%83%9b%e5%9b%be\/\",\"url\":\"https:\/\/statorials.org\/cn\/matplotlib-python-%e8%9c%a1%e7%83%9b%e5%9b%be\/\",\"name\":\"\u5982\u4f55\u5728 Python \u4e2d\u4f7f\u7528 Matplotlib \u521b\u5efa\u70db\u53f0\u56fe - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/cn\/#website\"},\"datePublished\":\"2023-07-23T00:05:40+00:00\",\"dateModified\":\"2023-07-23T00:05:40+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261\"},\"description\":\"\u672c\u6559\u7a0b\u901a\u8fc7\u4e00\u4e2a\u793a\u4f8b\u89e3\u91ca\u4e86\u5982\u4f55\u4f7f\u7528 Python \u4e2d\u7684 Matplotlib \u53ef\u89c6\u5316\u5e93\u521b\u5efa\u70db\u53f0\u56fe\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/cn\/matplotlib-python-%e8%9c%a1%e7%83%9b%e5%9b%be\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/cn\/matplotlib-python-%e8%9c%a1%e7%83%9b%e5%9b%be\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/cn\/matplotlib-python-%e8%9c%a1%e7%83%9b%e5%9b%be\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u5728 python \u4e2d\u4f7f\u7528 matplotlib \u521b\u5efa\u70db\u53f0\u56fe\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/cn\/#website\",\"url\":\"https:\/\/statorials.org\/cn\/\",\"name\":\"Statorials\",\"description\":\"\u60a8\u7684\u7edf\u8ba1\u7d20\u517b\u6307\u5357\uff01\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/cn\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261\",\"name\":\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\"},\"description\":\"\u5927\u5bb6\u597d\uff0c\u6211\u662f\u672c\u6770\u660e\uff0c\u4e00\u4f4d\u9000\u4f11\u7684\u7edf\u8ba1\u5b66\u6559\u6388\uff0c\u540e\u6765\u6210\u4e3a Statorials \u7684\u70ed\u5fc3\u6559\u5e08\u3002 \u51ed\u501f\u5728\u7edf\u8ba1\u9886\u57df\u7684\u4e30\u5bcc\u7ecf\u9a8c\u548c\u4e13\u4e1a\u77e5\u8bc6\uff0c\u6211\u6e34\u671b\u5206\u4eab\u6211\u7684\u77e5\u8bc6\uff0c\u901a\u8fc7 Statorials \u589e\u5f3a\u5b66\u751f\u7684\u80fd\u529b\u3002\u4e86\u89e3\u66f4\u591a\",\"sameAs\":[\"https:\/\/statorials.org\/cn\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u5728 Python \u4e2d\u4f7f\u7528 Matplotlib \u521b\u5efa\u70db\u53f0\u56fe - Statorials","description":"\u672c\u6559\u7a0b\u901a\u8fc7\u4e00\u4e2a\u793a\u4f8b\u89e3\u91ca\u4e86\u5982\u4f55\u4f7f\u7528 Python \u4e2d\u7684 Matplotlib \u53ef\u89c6\u5316\u5e93\u521b\u5efa\u70db\u53f0\u56fe\u3002","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:\/\/statorials.org\/cn\/matplotlib-python-\u8721\u70db\u56fe\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u5728 Python \u4e2d\u4f7f\u7528 Matplotlib \u521b\u5efa\u70db\u53f0\u56fe - Statorials","og_description":"\u672c\u6559\u7a0b\u901a\u8fc7\u4e00\u4e2a\u793a\u4f8b\u89e3\u91ca\u4e86\u5982\u4f55\u4f7f\u7528 Python \u4e2d\u7684 Matplotlib \u53ef\u89c6\u5316\u5e93\u521b\u5efa\u70db\u53f0\u56fe\u3002","og_url":"https:\/\/statorials.org\/cn\/matplotlib-python-\u8721\u70db\u56fe\/","og_site_name":"Statorials","article_published_time":"2023-07-23T00:05:40+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/bougie1.png"}],"author":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/cn\/matplotlib-python-%e8%9c%a1%e7%83%9b%e5%9b%be\/","url":"https:\/\/statorials.org\/cn\/matplotlib-python-%e8%9c%a1%e7%83%9b%e5%9b%be\/","name":"\u5982\u4f55\u5728 Python \u4e2d\u4f7f\u7528 Matplotlib \u521b\u5efa\u70db\u53f0\u56fe - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/cn\/#website"},"datePublished":"2023-07-23T00:05:40+00:00","dateModified":"2023-07-23T00:05:40+00:00","author":{"@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261"},"description":"\u672c\u6559\u7a0b\u901a\u8fc7\u4e00\u4e2a\u793a\u4f8b\u89e3\u91ca\u4e86\u5982\u4f55\u4f7f\u7528 Python \u4e2d\u7684 Matplotlib \u53ef\u89c6\u5316\u5e93\u521b\u5efa\u70db\u53f0\u56fe\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/cn\/matplotlib-python-%e8%9c%a1%e7%83%9b%e5%9b%be\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/cn\/matplotlib-python-%e8%9c%a1%e7%83%9b%e5%9b%be\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/cn\/matplotlib-python-%e8%9c%a1%e7%83%9b%e5%9b%be\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/cn\/"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u5728 python \u4e2d\u4f7f\u7528 matplotlib \u521b\u5efa\u70db\u53f0\u56fe"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/cn\/#website","url":"https:\/\/statorials.org\/cn\/","name":"Statorials","description":"\u60a8\u7684\u7edf\u8ba1\u7d20\u517b\u6307\u5357\uff01","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/cn\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261","name":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a"},"description":"\u5927\u5bb6\u597d\uff0c\u6211\u662f\u672c\u6770\u660e\uff0c\u4e00\u4f4d\u9000\u4f11\u7684\u7edf\u8ba1\u5b66\u6559\u6388\uff0c\u540e\u6765\u6210\u4e3a Statorials \u7684\u70ed\u5fc3\u6559\u5e08\u3002 \u51ed\u501f\u5728\u7edf\u8ba1\u9886\u57df\u7684\u4e30\u5bcc\u7ecf\u9a8c\u548c\u4e13\u4e1a\u77e5\u8bc6\uff0c\u6211\u6e34\u671b\u5206\u4eab\u6211\u7684\u77e5\u8bc6\uff0c\u901a\u8fc7 Statorials \u589e\u5f3a\u5b66\u751f\u7684\u80fd\u529b\u3002\u4e86\u89e3\u66f4\u591a","sameAs":["https:\/\/statorials.org\/cn"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts\/2272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/comments?post=2272"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts\/2272\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/media?parent=2272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/categories?post=2272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/tags?post=2272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}