{"id":10183,"date":"2020-08-10T10:25:51","date_gmt":"2020-08-10T01:25:51","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=10183"},"modified":"2020-08-10T10:26:56","modified_gmt":"2020-08-10T01:26:56","slug":"python%ec%9d%98-matplotlib%ec%97%90%ec%84%9c-%ec%a3%bc%ec%84%9dannotation%ec%9d%84-%ed%95%9c%ea%b8%80%eb%a1%9c-%ed%91%9c%ea%b8%b0%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=10183","title":{"rendered":"Python\uc758 matplotlib\uc5d0\uc11c \uc8fc\uc11d(Annotation)\uc744 \ud55c\uae00\ub85c \ud45c\uae30\ud558\uae30"},"content":{"rendered":"<p>matplotlib\ub294 \uac15\ub825\ud55c \uadf8\ub798\ud504 \ucd9c\ub825\uc744 \uc704\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac\uc774\uace0, \ub2e4\uc591\ud55c \ud658\uacbd\uacfc \uc5b8\uc5b4\uc5d0\uc11c \uc9c0\uc6d0\ub429\ub2c8\ub2e4. \uadf8\ub798\ud504\ub294 \uc5b4\ub5a4 \uc815\ubcf4\ub97c \uc804\ub2ec\ud558\uae30 \uc704\ud55c \ubaa9\uc801\uc744 \uac00\uc9c0\ubbc0\ub85c, \uc804\ub2ec\ud558\uace0\uc790 \ud558\ub294 \ub0b4\uc6a9\uc744 \ud6a8\uacfc\uc801\uc73c\ub85c \ud45c\uae30\ud560 \uc218 \uc788\uc5b4\uc57c \ud558\ub294\ub370\uc694. matplotlib\uc5d0\uc11c\ub294 \ud14d\uc2a4\ud2b8\ub098 \ud654\uc0b4\ud45c\uc640 \uac19\uc740 \uc9c0\uc2dc\uc120 \ub4f1\uc744 \uadf8\ub798\ud504 \uc0c1\uc5d0 \ud45c\uae30\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uc544\ub798\uc758 \ucf54\ub4dc\ub294 \uadf8\ub798\ud504 \uc704\uc5d0 \uc77c\ubc18\uc801\uc778 \ud14d\uc2a4\ud2b8\uc640 \uc9c0\uc2dc\uc120\uc744 \ud45c\uae30\ud558\ub294 \ud30c\uc774\uc36c\uc758 \ucf54\ub4dc\uc785\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nimport matplotlib.pyplot as plt\r\n\r\nplt.tight_layout()\r\nplt.axis([0,100,0,100])\r\nplt.plot(20, 20, \"bs\")\r\nplt.plot(50, 50, \"bs\")\r\nplt.plot(80, 80, \"bs\")\r\n\r\n\r\nplt.annotate('\uc911\uc559\uac12', xy=(50, 50), xytext=(50,20),\r\n            fontsize=14, ha='center',\r\n            arrowprops=dict(facecolor='black', width=1, shrink=0.1, headwidth=10))\r\n\r\nplt.text(25, 80, '\uc0c1\uc790 \uc18d\uc5d0 \uae00\uc790', fontsize=24, bbox=dict(boxstyle='square', color='lightgray'))\r\n\r\nplt.show()\r\n<\/pre>\n<p>\uacb0\uacfc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2020\/08\/matplot_annotation.png\" alt=\"\" width=\"1448\" height=\"1070\" class=\"aligncenter size-full wp-image-10186\" \/><\/p>\n<p>\ud30c\uc774\uc36c\uc5d0\uc11c matplotlib\uc5d0\uc11c \uc0ac\uc6a9\ud558\ub294 \uae30\ubcf8 \ud3f0\ud2b8\uac00 \uc601\ubb38\uc774\ubbc0\ub85c, \uc544\ub798\ucc98\ub7fc \uc6d0\ud558\ub294 \ud55c\uae00 \ud3f0\ud2b8\ub97c \uc9c1\uc811 \uc9c0\uc815\ud558\uc5ec \ud55c\uae00\uc744 \ud45c\uae30\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc544\ub798\uc758 \ucf54\ub4dc\ub294 \uadf8\ub798\ud504\ub97c \ucd9c\ub825\ud558\uae30 \uc774\uc804\uc778 \uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c 2\ubc88\uc904\uc5d0 \ucd94\uac00\ud558\uba74 \ub429\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nfrom matplotlib import font_manager\r\n\r\nfont_fname = 'C:\/Users\/Dip2K\/AppData\/Local\/Microsoft\/Windows\/Fonts\/XOU_XWA.ttf'\r\nfont_family = font_manager.FontProperties(fname=font_fname).get_name()\r\nprint(font_family)\r\nplt.rcParams[\"font.family\"] = font_family\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>matplotlib\ub294 \uac15\ub825\ud55c \uadf8\ub798\ud504 \ucd9c\ub825\uc744 \uc704\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac\uc774\uace0, \ub2e4\uc591\ud55c \ud658\uacbd\uacfc \uc5b8\uc5b4\uc5d0\uc11c \uc9c0\uc6d0\ub429\ub2c8\ub2e4. \uadf8\ub798\ud504\ub294 \uc5b4\ub5a4 \uc815\ubcf4\ub97c \uc804\ub2ec\ud558\uae30 \uc704\ud55c \ubaa9\uc801\uc744 \uac00\uc9c0\ubbc0\ub85c, \uc804\ub2ec\ud558\uace0\uc790 \ud558\ub294 \ub0b4\uc6a9\uc744 \ud6a8\uacfc\uc801\uc73c\ub85c \ud45c\uae30\ud560 \uc218 \uc788\uc5b4\uc57c \ud558\ub294\ub370\uc694. matplotlib\uc5d0\uc11c\ub294 \ud14d\uc2a4\ud2b8\ub098 \ud654\uc0b4\ud45c\uc640 \uac19\uc740 \uc9c0\uc2dc\uc120 \ub4f1\uc744 \uadf8\ub798\ud504 \uc0c1\uc5d0 \ud45c\uae30\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc544\ub798\uc758 \ucf54\ub4dc\ub294 \uadf8\ub798\ud504 \uc704\uc5d0 \uc77c\ubc18\uc801\uc778 \ud14d\uc2a4\ud2b8\uc640 \uc9c0\uc2dc\uc120\uc744 \ud45c\uae30\ud558\ub294 \ud30c\uc774\uc36c\uc758 \ucf54\ub4dc\uc785\ub2c8\ub2e4. import matplotlib.pyplot as plt plt.tight_layout() plt.axis([0,100,0,100]) plt.plot(20, 20, &#8220;bs&#8221;) &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=10183\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Python\uc758 matplotlib\uc5d0\uc11c \uc8fc\uc11d(Annotation)\uc744 \ud55c\uae00\ub85c \ud45c\uae30\ud558\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-10183","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/10183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10183"}],"version-history":[{"count":7,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/10183\/revisions"}],"predecessor-version":[{"id":10191,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/10183\/revisions\/10191"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10183"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}