{"id":3657,"date":"2020-05-22T10:10:12","date_gmt":"2020-05-22T01:10:12","guid":{"rendered":"https:\/\/now0930.pe.kr\/wordpress\/?p=3657"},"modified":"2020-05-22T10:20:10","modified_gmt":"2020-05-22T01:20:10","slug":"jupyter-matplot-%ed%95%9c%ea%b8%80-%ed%8f%b0%ed%8a%b8-%ec%84%a4%ec%a0%95","status":"publish","type":"post","link":"https:\/\/now0930.pe.kr\/wordpress\/jupyter-matplot-%ed%95%9c%ea%b8%80-%ed%8f%b0%ed%8a%b8-%ec%84%a4%ec%a0%95\/","title":{"rendered":"jupyter matplot \ud55c\uae00 \ud3f0\ud2b8 \uc124\uc815"},"content":{"rendered":"\n<p>\uba87 \ubc88 \ud5e4\ub9e4\ub2e4 \ub2f5\uc744 \ucc3e\uc558\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/stackoverflow.com\/questions\/42097053\/matplotlib-cannot-find-basic-fonts\n<\/div><\/figure>\n\n\n\n<p>I had this exact same problem on a Vagrant VM running Ubuntu Xenial 64-bit. No matter how many fonts I had already installed, matplotlib was having a problem with the &#8220;system&#8221; font name &#8220;sans-serif&#8221;. I fixed it by:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Stopping Jupyter<\/li><li>Installing font-manager: <code>sudo apt install font-manager<\/code><\/li><li>Cleaning the matplotlib cache directory: <code>rm ~\/.cache\/matplotlib -fr<\/code><\/li><li>Restarting Jupyter.<\/li><\/ul>\n\n\n\n<p>No more error messages about sans-serif.<\/p>\n\n\n\n<p>\ud574\ub2f9 \ucf54\ub4dc\uc5d0 \uc544\ub798 \ub450 \uc904\uc744 \uc0bd\uc785\ud55c\ub2e4. \ud3f0\ud2b8\ub294 \ucc3e\uc544\uc11c \ud574\ub2f9 \uc704\uce58\uc5d0 \ub123\uc5b4 \uc900\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">font_name = font_manager.FontProperties(fname=\"\/usr\/share\/fonts\/truetype\/nanum\/NanumGothic.ttf\").get_name()\nrc('font', family=font_name)<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\uba87 \ubc88 \ud5e4\ub9e4\ub2e4 \ub2f5\uc744 \ucc3e\uc558\ub2e4. I had this exact same problem on a Vagrant VM running Ubuntu Xenial 64-bit. No [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"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":""},"categories":[12],"tags":[762,761,763],"class_list":["post-3657","post","type-post","status-publish","format-standard","hentry","category-12","tag-jupyter","tag-matplot","tag-763"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/posts\/3657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/comments?post=3657"}],"version-history":[{"count":2,"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/posts\/3657\/revisions"}],"predecessor-version":[{"id":3660,"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/posts\/3657\/revisions\/3660"}],"wp:attachment":[{"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/media?parent=3657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/categories?post=3657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/now0930.pe.kr\/wordpress\/wp-json\/wp\/v2\/tags?post=3657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}