{"id":2408,"date":"2023-12-15T20:12:48","date_gmt":"2023-12-15T11:12:48","guid":{"rendered":"https:\/\/mindtech.jp\/?p=2408"},"modified":"2023-12-15T20:12:48","modified_gmt":"2023-12-15T11:12:48","slug":"post-2408","status":"publish","type":"post","link":"https:\/\/mindtech.jp\/?p=2408","title":{"rendered":"Python\u3067OS\u306b\u3088\u3063\u3066\u74b0\u5883\u306b\u3088\u3063\u3066\u5b9f\u884c\u3059\u308b\u5185\u5bb9\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>\u5177\u4f53\u7684\u306b\u306fWindows\u3068Linux\u3067\u304a\u306a\u3058JupyterLab\u306e\u30ce\u30fc\u30c8\u30d6\u30c3\u30af\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u3001\u65e5\u672c\u8a9e\u30d5\u30a9\u30f3\u30c8\u306e\u8a2d\u5b9a\u3067\u96e3\u5100\u3057\u305f\u308f\u3051\u3067\u3059\u3002Linux\u5074\u306bIPA\u30d5\u30a9\u30f3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3068\u3057\u3066\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>plt.rcParams&#91;'font.family'] = &#91;'IPAexGothic','Meiryo',\"BIZ UDGothic\", \"MS Gothic\" ]<\/code><\/pre>\n\n\n\n<p>\u306e\u3088\u3046\u306b\u66f8\u3051\u3070IPA\u30d5\u30a9\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u65e5\u672c\u8a9e\u3092\u63cf\u3044\u3066\u304f\u308c\u307e\u3059\u304c\u3001findfont: Font family &#8216;Meiryo&#8217; not found.\u3000\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3057\u307e\u3044\u307e\u3059\u3002Windows\u306e\u5834\u5408\u3082\u540c\u69d8\u3002<\/p>\n\n\n\n<p>\u7d50\u679c\u3068\u3057\u3066\u5f97\u305f\u3044\u7d50\u679c\u306f\u5f97\u3089\u308c\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u5ef6\u3005\u3068\u8868\u793a\u3055\u308c\u308b\u30a8\u30e9\u30fc\u306f\u3046\u3056\u3044\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u884c\u3059\u308b\u74b0\u5883\u306b\u3088\u3063\u3066\u3001\u5b9f\u884c\u3057\u305f\u3044\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3067\u5bfe\u5fdc\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nimport os\n\nif os.name == &#039;nt&#039;:  # Windows\n    plt.rcParams&#x5B;&#039;font.family&#039;] = &#x5B;&#039;Meiryo&#039;, &#039;BIZ UDGothic&#039;, &#039;MS Gothic&#039;]\nelif os.name == &#039;posix&#039;:  # Linux\n    plt.rcParams&#x5B;&#039;font.family&#039;] = &#x5B;&#039;IPAexGothic&#039;]\n<\/pre><\/div>\n\n\n<p>\u79c1\u306e\u5834\u5408\u306b\u306fMac\u3092\u6301\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u3055\u3089\u306bMac\u3092\u4f75\u7528\u3059\u308b\u5834\u5408\u306f\u5206\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u5c11\u306a\u304f\u3068\u3082Windows\u3068Linux(Ubuntu)\u3067\u306f\u4e0a\u8a18\u306e\u5bfe\u51e6\u3067\u306a\u3093\u3068\u304b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5177\u4f53\u7684\u306b\u306fWindows\u3068Linux\u3067\u304a\u306a\u3058JupyterLab\u306e\u30ce\u30fc\u30c8\u30d6\u30c3\u30af\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u3001\u65e5\u672c\u8a9e\u30d5\u30a9\u30f3\u30c8\u306e\u8a2d\u5b9a\u3067\u96e3\u5100\u3057\u305f\u308f\u3051\u3067\u3059\u3002Linux\u5074\u306bIPA\u30d5\u30a9\u30f3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3068\u3057\u3066\u3001 \u306e\u3088\u3046\u306b\u66f8\u3051\u3070IPA\u30d5\u30a9\u30f3\u30c8\u3092 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6],"tags":[469,34],"class_list":["post-2408","post","type-post","status-publish","format-standard","hentry","category-6","tag-matplotlib","tag-python"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4rHn0-CQ","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mindtech.jp\/index.php?rest_route=\/wp\/v2\/posts\/2408","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mindtech.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mindtech.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mindtech.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mindtech.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2408"}],"version-history":[{"count":1,"href":"https:\/\/mindtech.jp\/index.php?rest_route=\/wp\/v2\/posts\/2408\/revisions"}],"predecessor-version":[{"id":2409,"href":"https:\/\/mindtech.jp\/index.php?rest_route=\/wp\/v2\/posts\/2408\/revisions\/2409"}],"wp:attachment":[{"href":"https:\/\/mindtech.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mindtech.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mindtech.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}