{"id":5451,"date":"2014-01-18T15:59:16","date_gmt":"2014-01-18T07:59:16","guid":{"rendered":"https:\/\/kyle.ai\/blog\/?p=5451"},"modified":"2014-01-18T15:59:16","modified_gmt":"2014-01-18T07:59:16","slug":"ubuntu%e4%b8%8bmatplotlib%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/5451.html","title":{"rendered":"Ubuntu\u4e0bmatplotlib\u4e2d\u6587\u4e71\u7801\u89e3\u51b3"},"content":{"rendered":"<p>\u7528python\u7684matplotlib\u5e93\u753b\u66f2\u7ebf\u56fe\uff0c\u5206\u6790\u6570\u636e\u3002\u7136\u540e\u5c31\u9047\u5230\u4e86\u56fe\u7247xy\u8f74\u4e0a\u9762\u7684\u4e2d\u6587\u5b57\u4e71\u7801\u3002 \u4e0a\u7f51\u67e5\u7684\u6587\u7ae0\u90fd\u662f\u8bf4\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\uff1a .matplotlib\/matplotlibrc \u52a0\uff1a<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nfont.family         : sans-serif\r\nfont.sans-serif     : Microsoft YaHei, Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif\r\n<\/pre>\n<p>\u4f46\u6211\u8bd5\u8fc7\u4e0d\u7ba1\u7528\u3002 \u6700\u540e\uff0c\u628a\u7cfb\u7edf\u7684\u4e00\u4e2a\u4e2d\u6587\u5b57\u4f53\u590d\u5236\u5230matplotlib\u7684\u5b57\u4f53\u76ee\u5f55\u4e0b\u9762\uff0c\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo cp \/usr\/share\/fonts\/truetype\/YaHei.Consolas.1.11b.ttf  \/usr\/share\/matplotlib\/mpl-data\/fonts\/ttf\/cmb10.ttf\r\n<\/pre>\n<p>YaHei.Consolas.1.11b.ttf \u8fd9\u662f\u6211\u81ea\u5df1\u641e\u4e86\u4e00\u4e2a\u7f16\u7a0b\u4e2d\u6587\u5b57\u4f53\uff0c\u4f60\u53ef\u4ee5\u6362\u6210\u5176\u5b83\u7684\u4e2d\u6587\u5b57\u4f53\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7528python\u7684matplotlib\u5e93\u753b\u66f2\u7ebf\u56fe\uff0c\u5206\u6790\u6570\u636e\u3002\u7136\u540e\u5c31\u9047\u5230\u4e86\u56fe\u7247xy\u8f74\u4e0a\u9762\u7684\u4e2d\u6587\u5b57\u4e71\u7801\u3002 \u4e0a\u7f51\u67e5\u7684\u6587 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-5451","post","type-post","status-publish","format-standard","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/5451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=5451"}],"version-history":[{"count":1,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/5451\/revisions"}],"predecessor-version":[{"id":5452,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/5451\/revisions\/5452"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=5451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=5451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=5451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}