{"id":4442,"date":"2025-01-12T09:19:47","date_gmt":"2025-01-12T00:19:47","guid":{"rendered":"https:\/\/secondlife.lol\/?p=4442"},"modified":"2025-01-12T19:56:27","modified_gmt":"2025-01-12T10:56:27","slug":"interactive-graph-python-plotly","status":"publish","type":"post","link":"https:\/\/secondlife.lol\/en\/interactive-graph-python-plotly\/","title":{"rendered":"Interactive Graphs: Learn to visualize data easily with Python Plotly"},"content":{"rendered":"\n<p>\uc5ec\ub7ec\ubd84, \uc774\ub7f0 \uacbd\ud5d8 \uc5c6\uc73c\uc138\uc694? \ubcf5\uc7a1\ud55c \ub370\uc774\ud130\ub97c \ud574\uc11d\ud558\ub824\uace0 \uba38\ub9ac\ub97c \uc2f8\ub9e4\uc9c0\ub9cc, \uc815\uc791 \uc911\uc694\ud55c \ud3ec\uc778\ud2b8\ub97c \ub193\uccd0\ubc84\ub9ac\ub294 \uc77c. \uc774\ub7f0 \uc0c1\ud669\uc5d0 \ub531 \ub9de\ub294 \ud574\uacb0\ucc45\uc774 \ubc14\ub85c <strong>\uc778\ud130\ub799\ud2f0\ube0c \uadf8\ub798\ud504<\/strong>\uc608\uc694! \ub370\uc774\ud130\ub97c \ud074\ub9ad\ud558\uace0, \ud655\ub300\ud558\uace0, \ud544\uc694\ud55c \uc815\ubcf4\ub9cc \uc3d9\uc3d9 \ubf51\uc544\ubcfc \uc218 \uc788\ub2e4\uba74 \uc5bc\ub9c8\ub098 \uc88b\uc744\uae4c\uc694?<\/p>\n\n\n\n<p>\uc624\ub298\uc740 \uc5ec\ub7ec\ubd84\uaed8 <strong><a href=\"http:\/\/python.org\" target=\"_blank\" rel=\"noopener\">\ud30c\uc774\uc36c<\/a> Plotly\ub97c \ud65c\uc6a9\ud574\uc11c \uc2dc\uac01\ud654 \ud558\ub294 \ubc29\ubc95<\/strong>\uc744 \uc54c\ub824\ub4dc\ub9b4\uac8c\uc694. \uae00\uc744 \ub05d\uae4c\uc9c0 \uc77d\uc73c\uba74 \ub370\uc774\ud130 \uc2dc\uac01\ud654\uc758 \uc2e0\uc138\uacc4\ub97c \uacbd\ud5d8\ud560 \uc900\ube44\uac00 \ub420 \uac70\uc608\uc694.<\/p>\n\n\n<style>.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-content-wrap{padding-top:var(--global-kb-spacing-sm, 1.5rem);padding-right:var(--global-kb-spacing-sm, 1.5rem);padding-bottom:var(--global-kb-spacing-sm, 1.5rem);padding-left:var(--global-kb-spacing-sm, 1.5rem);border-top:3px solid var(--global-palette2, #2B6CB0);border-right:3px solid var(--global-palette2, #2B6CB0);border-bottom:3px solid var(--global-palette2, #2B6CB0);border-left:3px solid var(--global-palette2, #2B6CB0);border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;box-shadow:0px 0px 14px 0px rgba(0, 0, 0, 0.2);}.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-contents-title-wrap{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-contents-title-wrap{color:var(--global-palette2, #2B6CB0);}.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-contents-title{color:var(--global-palette2, #2B6CB0);font-size:28px;font-weight:regular;font-style:normal;}.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-content-wrap .kb-table-of-content-list{color:var(--global-palette1, #3182CE);line-height:2em;font-weight:regular;font-style:normal;margin-top:var(--global-kb-spacing-sm, 1.5rem);margin-right:0px;margin-bottom:0px;margin-left:0px;}.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-content-wrap .kb-table-of-content-list .kb-table-of-contents__entry:hover{color:var(--global-palette6, #718096);}@media all and (max-width: 1024px){.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-content-wrap{border-top:3px solid var(--global-palette2, #2B6CB0);border-right:3px solid var(--global-palette2, #2B6CB0);border-bottom:3px solid var(--global-palette2, #2B6CB0);border-left:3px solid var(--global-palette2, #2B6CB0);}}@media all and (max-width: 1024px){.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-contents-title{font-size:28px;}}@media all and (max-width: 767px){.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-content-wrap{border-top:3px solid var(--global-palette2, #2B6CB0);border-right:3px solid var(--global-palette2, #2B6CB0);border-bottom:3px solid var(--global-palette2, #2B6CB0);border-left:3px solid var(--global-palette2, #2B6CB0);}.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-contents-title{font-size:28px;}}<\/style>\n\n\n<h2 class=\"wp-block-heading\">\uc778\ud130\ub799\ud2f0\ube0c \uadf8\ub798\ud504\ub780?<\/h2>\n\n\n\n<p>\uc778\ud130\ub799\ud2f0\ube0c \uadf8\ub798\ud504\ub294 <strong>\uc0ac\uc6a9\uc790\uac00 \uadf8\ub798\ud504\uc640 \uc9c1\uc811 \uc0c1\ud638\uc791\uc6a9\ud560 \uc218 \uc788\ub294 \ub370\uc774\ud130 \uc2dc\uac01\ud654 \ub3c4\uad6c<\/strong>\uc608\uc694. \ub2e8\uc21c\ud788 \uacb0\uacfc\ub97c \ubcf4\uc5ec\uc8fc\ub294 \ub370\uc11c \uadf8\uce58\uc9c0 \uc54a\uace0, \uc0ac\uc6a9\uc790\uac00 \ub370\uc774\ud130\ub97c \ud0d0\uc0c9\ud558\uba70 \uc228\uaca8\uc9c4 \ud328\ud134\uc744 \ubc1c\uacac\ud558\ub3c4\ub85d \ub3c4\uc640\uc918\uc694.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\uc8fc\uc694 \ud2b9\uc9d5<\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ud655\ub300\/\ucd95\uc18c: \ub4dc\ub798\uadf8\ud558\uac70\ub098 \ub9c8\uc6b0\uc2a4 \ud720\ub85c \uadf8\ub798\ud504\ub97c \uc6d0\ud558\ub294 \ud06c\uae30\ub85c \uc870\uc815.<\/li>\n\n\n\n<li>\ud234\ud301 \ud45c\uc2dc: \ud2b9\uc815 \ub370\uc774\ud130 \ud3ec\uc778\ud2b8\uc5d0 \ub9c8\uc6b0\uc2a4\ub97c \uc62c\ub9ac\uba74 \uac12\uc774 \ud45c\uc2dc.<\/li>\n\n\n\n<li>\ud544\ud130\ub9c1: \uc120\ud0dd\ud55c \ub370\uc774\ud130\ub9cc \ubcf4\uac70\ub098 \uc228\uae38 \uc218 \uc788\uc74c.<\/li>\n\n\n\n<li>\ub370\uc774\ud130 \uc120\ud0dd: \uac15\uc870\ud558\uace0 \uc2f6\uc740 \ub370\uc774\ud130\ub97c \ub4dc\ub798\uadf8\ub85c \uc120\ud0dd.<\/li>\n<\/ul>\n\n\n\n<p>\uc774\uc81c\ubd80\ud130\ub294 Plotly\ub97c \uc774\uc6a9\ud574 \uc9c1\uc811 \uc774\ub7f0 \uadf8\ub798\ud504\ub97c \ub9cc\ub4e4\uc5b4\ubcfc \uac70\uc608\uc694!<\/p>\n\n\n<style>.wp-block-kadence-advancedheading.kt-adv-heading4442_e0b15e-b6, .wp-block-kadence-advancedheading.kt-adv-heading4442_e0b15e-b6[data-kb-block=\"kb-adv-heading4442_e0b15e-b6\"]{font-style:normal;}.wp-block-kadence-advancedheading.kt-adv-heading4442_e0b15e-b6 mark.kt-highlight, .wp-block-kadence-advancedheading.kt-adv-heading4442_e0b15e-b6[data-kb-block=\"kb-adv-heading4442_e0b15e-b6\"] mark.kt-highlight{font-style:normal;color:#f76a0c;-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.wp-block-kadence-advancedheading.kt-adv-heading4442_e0b15e-b6 img.kb-inline-image, .wp-block-kadence-advancedheading.kt-adv-heading4442_e0b15e-b6[data-kb-block=\"kb-adv-heading4442_e0b15e-b6\"] img.kb-inline-image{width:150px;vertical-align:baseline;}<\/style>\n<h2 class=\"kt-adv-heading4442_e0b15e-b6 wp-block-kadence-advancedheading\" data-kb-block=\"kb-adv-heading4442_e0b15e-b6\">Plotly \ub77c\uc774\ube0c\ub7ec\ub9ac \uac1c\uc694<\/h2>\n\n\n\n<p>Plotly\ub294 \ud30c\uc774\uc36c\uc5d0\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \uace0\uae09 \uc778\ud130\ub799\ud2f0\ube0c \ub370\uc774\ud130 \uc2dc\uac01\ud654 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc785\ub2c8\ub2e4. \uc774 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc0ac\uc6a9\ud558\uba74 \ub3d9\uc801\uc73c\ub85c \ubc18\uc751\ud558\ub294 \uadf8\ub798\ud504\uc640 \ucc28\ud2b8\ub97c \uc27d\uac8c \uc0dd\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uc8fc\uc694 \ud2b9\uc9d5<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\uc778\ud130\ub799\ud2f0\ube0c \uc2dc\uac01\ud654<\/strong>: \uc0ac\uc6a9\uc790\uac00 \uadf8\ub798\ud504\uc640 \uc0c1\ud638\uc791\uc6a9\ud560 \uc218 \uc788\ub294 \ub3d9\uc801 \ucc28\ud2b8 \uc0dd\uc131<\/li>\n\n\n\n<li><strong>\ub2e4\uc591\ud55c \ucc28\ud2b8 \uc720\ud615<\/strong>: \ub77c\uc778 \ucc28\ud2b8, \uc0b0\uc810\ub3c4, \ubc14 \ucc28\ud2b8, \ud30c\uc774 \ucc28\ud2b8, 3D \ucc28\ud2b8 \ub4f1 40\uac1c \uc774\uc0c1\uc758 \ucc28\ud2b8 \ud0c0\uc785 \uc9c0\uc6d0<\/li>\n\n\n\n<li><strong>\uc6f9 \uae30\ubc18<\/strong>: D3.js\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uc5ec \uc6f9 \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c \uc2dc\uac01\ud654 \ud45c\uc2dc<\/li>\n\n\n\n<li><strong>\ub2e4\uc591\ud55c \ud50c\ub7ab\ud3fc \uc9c0\uc6d0<\/strong>: Jupyter \ub178\ud2b8\ubd81 \ub4f1 \uc5ec\ub7ec \ud50c\ub7ab\ud3fc\uacfc\uc758 \ud1b5\ud569 \uc9c0\uc6d0<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\ud65c\uc6a9 \ubd84\uc57c<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\ub370\uc774\ud130 \ubd84\uc11d<\/strong>: \ubcf5\uc7a1\ud55c \ub370\uc774\ud130\uc14b\uc744 \uc9c1\uad00\uc801\uc73c\ub85c \ud0d0\uc0c9 \uac00\ub2a5<\/li>\n\n\n\n<li><strong>\ube44\uc988\ub2c8\uc2a4 \uc778\ud154\ub9ac\uc804\uc2a4<\/strong>: \ub3d9\uc801 \ub300\uc2dc\ubcf4\ub4dc \uc0dd\uc131\uc5d0 \ud65c\uc6a9<\/li>\n\n\n\n<li><strong>\uacfc\ud559 \uc5f0\uad6c<\/strong>: \uc2e4\ud5d8 \uacb0\uacfc \ubc0f \ud1b5\uacc4 \ub370\uc774\ud130 \uc2dc\uac01\ud654<\/li>\n\n\n\n<li><strong>\uae08\uc735 \ubd84\uc11d<\/strong>: \uc8fc\uc2dd \ucc28\ud2b8 \ub4f1 \uae08\uc735 \ub370\uc774\ud130 \ud45c\ud604<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\uc7a5\uc810<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\ub192\uc740 \ucee4\uc2a4\ud130\ub9c8\uc774\uc9d5 \uac00\ub2a5\uc131<\/strong>: \uc138\ubc00\ud55c \uadf8\ub798\ud504 \uc870\uc815 \uac00\ub2a5<\/li>\n\n\n\n<li><strong>\ubc18\uc751\ud615 \ub514\uc790\uc778<\/strong>: \ub2e4\uc591\ud55c \ub514\ubc14\uc774\uc2a4\uc5d0\uc11c \ucd5c\uc801\ud654\ub41c \ud45c\uc2dc<\/li>\n\n\n\n<li><strong>\ub2e4\uc591\ud55c \uc5b8\uc5b4 \uc9c0\uc6d0<\/strong>: R, \ud30c\uc774\uc36c, \uc904\ub9ac\uc544, \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ub4f1 \uc9c0\uc6d0<\/li>\n<\/ul>\n\n\n\n<p>Plotly\ub294 \ub370\uc774\ud130 \uc2dc\uac01\ud654\uc758 \uc0c8\ub85c\uc6b4 \uc9c0\ud3c9\uc744 \uc5f4\uc5b4\uc8fc\ub294 \uac15\ub825\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uc778\ud130\ub799\ud2f0\ube0c\ud55c \ud2b9\uc131\uacfc \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \ud1b5\ud574 \ub370\uc774\ud130\ub97c \ub354\uc6b1 \ud6a8\uacfc\uc801\uc73c\ub85c \uc804\ub2ec\ud558\uace0 \ubd84\uc11d\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Plotly \uc124\uce58 \ubc0f \uae30\ubcf8 \uc0ac\uc6a9\ubc95<\/h2>\n\n\n\n<p><strong>Plotly<\/strong>\ub294 \ud30c\uc774\uc36c\uc5d0\uc11c \uc778\ud130\ub799\ud2f0\ube0c \uadf8\ub798\ud504\ub97c \ub9cc\ub4dc\ub294 \ub370 \ucd5c\uc801\ud654\ub41c \ub77c\uc774\ube0c\ub7ec\ub9ac\uc608\uc694. \uba3c\uc800 \uc124\uce58\ubd80\ud130 \uc2dc\uc791\ud574\ubcfc\uac8c\uc694. \uc544\ub798 \uba85\ub839\uc5b4\ub97c \uc774\uc6a9\ud574\uc11c \ud30c\uc774\uc36c plotly \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc124\uce58\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install plotly<\/code><\/pre>\n\n\n<style>.kb-image4442_c9fc05-0a .kb-image-has-overlay:after{opacity:0.3;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;}.kb-image4442_c9fc05-0a img.kb-img, .kb-image4442_c9fc05-0a .kb-img img{border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;box-shadow:0px 0px 14px 0px rgba(0, 0, 0, 0.2);}<\/style>\n<div class=\"wp-block-kadence-image kb-image4442_c9fc05-0a\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"893\" height=\"210\" src=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7.jpg\" alt=\"\ud30c\uc774\uc36c Plotly \uc124\uce58 \uacb0\uacfc \uc774\ubbf8\uc9c0\" class=\"kb-img wp-image-4443\" srcset=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7.jpg 893w, https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-300x71.jpg 300w, https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-600x141.jpg 600w, https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-768x181.jpg 768w, https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-18x4.jpg 18w\" sizes=\"(max-width: 893px) 100vw, 893px\" \/><figcaption>( \ud30c\uc774\uc36c Plotly \uc124\uce58 \uacb0\uacfc )<\/figcaption><\/figure><\/div>\n\n\n\n<p>\uac04\ub2e8\ud558\uc8e0? \uc124\uce58\uac00 \ub05d\ub0ac\ub2e4\uba74 \uae30\ubcf8\uc801\uc778 \uadf8\ub798\ud504\ubd80\ud130 \ub9cc\ub4e4\uc5b4\ubcfc\uac8c\uc694.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Plotly\ub85c \ub9cc\ub4dc\ub294 \uae30\ubcf8 \uc778\ud130\ub799\ud2f0\ube0c \uadf8\ub798\ud504<\/h2>\n\n\n\n<p>\uc774\uc81c \uc2e4\uc81c \ud30c\uc774\uc36c plotly \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc774\uc6a9\ud574\uc11c \uae30\ubcf8\uc801\uc778 \uc778\ud130\ub799\ud2f0\ube0c \uadf8\ub798\ud504\ub97c \uad6c\ud604\ud574\ubcf4\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4. \ub300\uc0c1\uc740 \uc0b0\uc810\ub3c4\ub97c \uc0dd\uc131\ud558\ub294 \uac83\uc73c\ub85c \ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import plotly.express as px\n\n# \uc0d8\ud50c \ub370\uc774\ud130 \ub85c\ub4dc\niris = px.data.iris()\n\n# \uc0b0\uc810\ub3c4 \uc0dd\uc131\nfig = px.scatter(iris, x=\"sepal_width\", y=\"sepal_length\", color=\"species\",\n                 title=\"Iris Sepal Width vs Length\")\n\n# \uadf8\ub798\ud504 \ud45c\uc2dc\nfig.show()<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83d\udd39 \ucf54\ub4dc \ud574\uc124<\/h4>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><code><strong>import plotly.express as px<\/strong><\/code>: <code>plotly.express<\/code>\ub294 \uac04\ub2e8\ud55c \ucf54\ub4dc\ub85c \uac15\ub825\ud55c \uc778\ud130\ub799\ud2f0\ube0c \uadf8\ub798\ud504\ub97c \uc0dd\uc131\ud560 \uc218 \uc788\ub294 \ubaa8\ub4c8\uc774\uc5d0\uc694.<\/li>\n\n\n\n<li><code><strong>px.data.iris()<\/strong><\/code>: Plotly\uc5d0 \ub0b4\uc7a5\ub41c Iris \ub370\uc774\ud130\uc14b\uc744 \ubd88\ub7ec\uc635\ub2c8\ub2e4.<\/li>\n\n\n\n<li><code><strong>px.scatter<\/strong><\/code>: \uc0b0\uc810\ub3c4\ub97c \uc0dd\uc131\ud558\ub294 \ud568\uc218\uc608\uc694. \ucd95\uacfc \uc0c9\uc0c1\uc744 \uc9c0\uc815\ud574 \ub370\uc774\ud130 \uc2dc\uac01\ud654\ub97c \uc138\ubc00\ud558\uac8c \uc124\uc815\ud560 \uc218 \uc788\uc5b4\uc694.<\/li>\n\n\n\n<li><code><strong>fig.show()<\/strong><\/code>: \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c \ub300\ud654\ud615 \uadf8\ub798\ud504\ub97c \ub744\uc6cc\uc90d\ub2c8\ub2e4.<\/li>\n<\/ol>\n\n\n<style>.kb-image4442_18ef92-9a .kb-image-has-overlay:after{opacity:0.3;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;}.kb-image4442_18ef92-9a img.kb-img, .kb-image4442_18ef92-9a .kb-img img{border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;box-shadow:0px 0px 14px 0px rgba(0, 0, 0, 0.2);}<\/style>\n<div class=\"wp-block-kadence-image kb-image4442_18ef92-9a\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1015\" height=\"908\" src=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-1.jpg\" alt=\"\uc778\ud130\ub799\ud2f0\ube0c \uadf8\ub798\ud504 \uad6c\ud604 \uacb0\uacfc \uc774\ubbf8\uc9c0\" class=\"kb-img wp-image-4444\" srcset=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-1.jpg 1015w, https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-1-300x268.jpg 300w, https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-1-600x537.jpg 600w, https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-1-768x687.jpg 768w, https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-1-13x12.jpg 13w\" sizes=\"(max-width: 1015px) 100vw, 1015px\" \/><figcaption>( \uc778\ud130\ub799\ud2f0\ube0c \uadf8\ub798\ud504 \uad6c\ud604 \uacb0\uacfc \uc774\ubbf8\uc9c0 )<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\uace0\uae09 \uadf8\ub798\ud504: Plotly Graph Objects \uc0ac\uc6a9\ud558\uae30<\/h2>\n\n\n\n<p><code>plotly.graph_objects<\/code>\ub294 \ucee4\uc2a4\ud130\ub9c8\uc774\uc9d5\uc774 \ud544\uc694\ud55c \uacbd\uc6b0 \uc801\ud569\ud574\uc694. \uc544\ub798 \ucf54\ub4dc\ub97c \ud1b5\ud574 \ub9c8\ucee4\uc640 \ub77c\uc778\uc744 \uacb0\ud569\ud55c \uace0\uae09 \uadf8\ub798\ud504\ub97c \ub9cc\ub4e4\uc5b4\ubcfc\uac8c\uc694.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import plotly.graph_objects as go\n\n# \ub370\uc774\ud130 \uc0dd\uc131\nfig = go.Figure()\nfig.add_trace(go.Scatter(x=&#91;1, 2, 3, 4], y=&#91;10, 11, 12, 13],\n                         mode='markers+lines',\n                         marker=dict(size=10, color='blue'),\n                         name='Sample Data'))\n\n# \ub808\uc774\uc544\uc6c3 \uc124\uc815\nfig.update_layout(title=\"Markers and Lines Example\",\n                  xaxis_title=\"X-axis\",\n                  yaxis_title=\"Y-axis\")\n\nfig.show()<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83d\udd39 \ucf54\ub4dc \ud574\uc124<\/h4>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><code><strong>go.Figure()<\/strong><\/code>: \uadf8\ub798\ud504 \uac1d\uccb4\ub97c \ucd08\uae30\ud654\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li><code><strong>add_trace<\/strong><\/code>: \uadf8\ub798\ud504\uc5d0 \ub370\uc774\ud130 \uacc4\uce35\uc744 \ucd94\uac00\ud569\ub2c8\ub2e4. \uc5ec\uae30\uc11c\ub294 \uc0b0\uc810\ub3c4\uc640 \ub77c\uc778\uc744 \uacb0\ud569\ud588\uc5b4\uc694.<\/li>\n\n\n\n<li><code><strong>marker=dict(...)<\/strong><\/code>: \ub9c8\ucee4\uc758 \ud06c\uae30\uc640 \uc0c9\uc0c1\uc744 \uc124\uc815\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li><code><strong>update_layout<\/strong><\/code>: \uadf8\ub798\ud504 \uc81c\ubaa9\uacfc \ucd95 \ub808\uc774\ube14\uc744 \uc124\uc815\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li><code><strong>fig.show()<\/strong><\/code>: \ub300\ud654\ud615 \uadf8\ub798\ud504\ub97c \uc6f9 \ube0c\ub77c\uc6b0\uc800\uc5d0 \ud45c\uc2dc\ud569\ub2c8\ub2e4.<\/li>\n<\/ol>\n\n\n<style>.kb-image4442_f3c862-94 .kb-image-has-overlay:after{opacity:0.3;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;}.kb-image4442_f3c862-94 img.kb-img, .kb-image4442_f3c862-94 .kb-img img{border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;box-shadow:0px 0px 14px 0px rgba(0, 0, 0, 0.2);}<\/style>\n<div class=\"wp-block-kadence-image kb-image4442_f3c862-94\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"918\" height=\"507\" src=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-2.jpg\" alt=\"\ud30c\uc774\uc36c plotly \uc774\uc6a9 \uace0\uae09 \uadf8\ub798\ud504 \uc774\ubbf8\uc9c0\" class=\"kb-img wp-image-4447\" srcset=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-2.jpg 918w, https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-2-300x166.jpg 300w, https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-2-600x331.jpg 600w, https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-2-768x424.jpg 768w, https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-2-18x10.jpg 18w\" sizes=\"(max-width: 918px) 100vw, 918px\" \/><figcaption>( \ub9c8\ucee4\uc640 \ub77c\uc778\uc744 \uacb0\ud569\ud55c \uace0\uae09 \uadf8\ub798\ud504 )<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\uc9c0\ub9ac \uc815\ubcf4 \uc2dc\uac01\ud654: Choropleth Map<\/h2>\n\n\n\n<p>\uc774\ubc88\uc5d0\ub294 \uc870\uae08 \ub354 \uace0\uae09(?)\uc2a4\ub7ec\uc6b4 \uac83\uc73c\ub85c \ud574\ubcf4\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc9c0\ub3c4\ub97c \uc774\uc6a9\ud55c \uc2dc\uac01\ud654\ub3c4 Plotly\uc5d0\uc11c \uc27d\uac8c \uad6c\ud604 \uac00\ub2a5\ud574\uc694. \uc138\uacc4 GDP \ub370\uc774\ud130\ub97c \uc9c0\ub3c4 \uc704\uc5d0 \ud45c\ud604\ud574\ubcfc\uac8c\uc694.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import plotly.express as px\n\ndata = px.data.gapminder().query(\"year == 2007\")\n\nfig = px.choropleth(data, locations=\"iso_alpha\",\n                    color=\"gdpPercap\",\n                    hover_name=\"country\",\n                    title=\"2007\ub144 \uc804 \uc138\uacc4 GDP\")\n\nfig.show()<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83d\udd39 \ucf54\ub4dc \ud574\uc124<\/h4>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><code><strong>px.data.gapminder()<\/strong><\/code>: Gapminder \ub370\uc774\ud130\uc14b\uc5d0\uc11c 2007\ub144 \ub370\uc774\ud130\ub97c \ud544\ud130\ub9c1\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li><code><strong>px.choropleth<\/strong><\/code>: Choropleth \uc9c0\ub3c4\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4. \uad6d\uac00\ub97c \uc0c9\uc0c1\uc73c\ub85c \uad6c\ubd84\ud558\uc5ec \ub370\uc774\ud130 \ube44\uad50\ub97c \uc27d\uac8c \ub9cc\ub4ed\ub2c8\ub2e4.<\/li>\n\n\n\n<li><code><strong>locations=\"iso_alpha\"<\/strong><\/code>: ISO \ucf54\ub4dc \ud615\uc2dd\uc73c\ub85c \uad6d\uac00\ub97c \uc9c0\uc815\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li><code><strong>color=\"gdpPercap\"<\/strong><\/code>: GDP \ub370\uc774\ud130\ub97c \uc0c9\uc0c1\uc73c\ub85c \ud45c\ud604\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li><code><strong>hover_name=\"country\"<\/strong><\/code>: \ub9c8\uc6b0\uc2a4\ub97c \uc62c\ub838\uc744 \ub54c \uad6d\uac00 \uc774\ub984\uc774 \ud45c\uc2dc\ub418\ub3c4\ub85d \uc124\uc815\ud569\ub2c8\ub2e4.<\/li>\n<\/ol>\n\n\n<style>.kb-image4442_55f7da-fe .kb-image-has-overlay:after{opacity:0.3;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;}.kb-image4442_55f7da-fe img.kb-img, .kb-image4442_55f7da-fe .kb-img img{border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;box-shadow:0px 0px 14px 0px rgba(0, 0, 0, 0.2);}<\/style>\n<div class=\"wp-block-kadence-image kb-image4442_55f7da-fe\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"918\" height=\"507\" src=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-3.jpg\" alt=\"\uc9c0\ub9ac \uc815\ubcf4 \uc2dc\uac01\ud654 - Choropleth Map\" class=\"kb-img wp-image-4448\" srcset=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-3.jpg 918w, https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-3-300x166.jpg 300w, https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-3-600x331.jpg 600w, https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-3-768x424.jpg 768w, https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/image-7-3-18x10.jpg 18w\" sizes=\"(max-width: 918px) 100vw, 918px\" \/><figcaption>( \uc9c0\ub9ac \uc815\ubcf4 \uc2dc\uac01\ud654 &#8211; Choropleth Map )<\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\uacb0\ub860: \uc778\ud130\ub799\ud2f0\ube0c \uadf8\ub798\ud504\uc758 \ud798<\/h3>\n\n\n\n<p>\ub370\uc774\ud130\ub97c \ub2e8\uc21c\ud788 \ubcf4\ub294 \uac83\uc5d0\uc11c \ub05d\ub098\uc9c0 \uc54a\uace0, \uc9c1\uc811 \ud0d0\uc0c9\ud560 \uc218 \uc788\ub294 \uc778\ud130\ub799\ud2f0\ube0c \uadf8\ub798\ud504\ub294 \ub370\uc774\ud130 \ubd84\uc11d\uc758 \ud328\ub7ec\ub2e4\uc784\uc744 \ubc14\uafd4\uc694. \ud2b9\ud788, \ud30c\uc774\uc36c Plotly\ub97c \ud65c\uc6a9\ud558\uba74 \ub204\uad6c\ub098 \uc27d\uace0 \ube60\ub974\uac8c \ub300\ud654\ud615 \uadf8\ub798\ud504\ub97c \ub9cc\ub4e4 \uc218 \uc788\ub2f5\ub2c8\ub2e4. \uc624\ub298 \ubc30\uc6b4 \ub0b4\uc6a9\uc744 \ud1a0\ub300\ub85c \uc5ec\ub7ec\ubd84\uc758 \ub370\uc774\ud130\uc5d0 \uc0dd\uba85\uc744 \ubd88\uc5b4\ub123\uc5b4 \ubcf4\uc138\uc694!<\/p>\n\n\n\n<p>\ud639\uc2dc\ub098 \uc774 \ud3ec\uc2a4\ud2b8\uc758 \ub0b4\uc6a9\uc774 \uc5b4\ub835\ub2e4\uba74, \uc26c\uc6b4 \uac83\ubd80\ud130 \ud574\ubcf4\uc2dc\uc8e0~ <a href=\"https:\/\/secondlife.lol\/python-line-graph-priority-compensation\/\" data-type=\"post\" data-id=\"4385\">\ud30c\uc774\uc36c \uc120\uadf8\ub798\ud504\ub85c \uc8fc\ud0dd\uc784\ub300\ucc28\ubcf4\ud638\ubc95 \ucd5c\uc6b0\uc120\ubcc0\uc81c\uae08\uc561 \ucd94\uc774 \uc2dc\uac01\ud654\ud558\uae30(2025\ub144 \uae30\uc900)<\/a> \ud3ec\uc2a4\ud2b8\ub85c \uae30\ubcf8\uadf8\ub798\ud504 \uc9c0\uc2dd\uc744 \uc2b5\ub4dd\ud574\ubcf4\uc138\uc694!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc5ec\ub7ec\ubd84, \uc774\ub7f0 \uacbd\ud5d8 \uc5c6\uc73c\uc138\uc694? \ubcf5\uc7a1\ud55c \ub370\uc774\ud130\ub97c \ud574\uc11d\ud558\ub824\uace0 \uba38\ub9ac\ub97c \uc2f8\ub9e4\uc9c0\ub9cc, \uc815\uc791&#8230;<\/p>","protected":false},"author":3,"featured_media":4465,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[3],"tags":[34,739,177,164,737,738],"class_list":["post-4442","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-coding","tag-python","tag-739","tag-177","tag-164","tag-737","tag--plotly"],"taxonomy_info":{"category":[{"value":3,"label":"\ud30c\uc774\uc36c(Python)"}],"post_tag":[{"value":34,"label":"python"},{"value":739,"label":"\ub300\ud654\ud615 \uadf8\ub798\ud504"},{"value":177,"label":"\ub370\uc774\ud130 \ubd84\uc11d"},{"value":164,"label":"\ub370\uc774\ud130 \uc2dc\uac01\ud654"},{"value":737,"label":"\uc778\ud130\ub799\ud2f0\ube0c \uadf8\ub798\ud504"},{"value":738,"label":"\ud30c\uc774\uc36c Plotly"}]},"featured_image_src_large":["https:\/\/secondlife.lol\/wp-content\/uploads\/2025\/01\/\uc778\ud130\ub799\ud2f0\ube0c-\uadf8\ub798\ud504-\ud3ec\uc2a4\ud2b8-\uc378\ub124\uc77c-600x600.jpg",600,600,true],"author_info":{"display_name":"TERE","author_link":"https:\/\/secondlife.lol\/en\/author\/tere\/"},"comment_info":0,"category_info":[{"term_id":3,"name":"\ud30c\uc774\uc36c(Python)","slug":"python-coding","term_group":0,"term_taxonomy_id":3,"taxonomy":"category","description":"","parent":20,"count":116,"filter":"raw","cat_ID":3,"category_count":116,"category_description":"","cat_name":"\ud30c\uc774\uc36c(Python)","category_nicename":"python-coding","category_parent":20}],"tag_info":[{"term_id":34,"name":"python","slug":"python","term_group":0,"term_taxonomy_id":34,"taxonomy":"post_tag","description":"","parent":0,"count":21,"filter":"raw"},{"term_id":739,"name":"\ub300\ud654\ud615 \uadf8\ub798\ud504","slug":"%eb%8c%80%ed%99%94%ed%98%95-%ea%b7%b8%eb%9e%98%ed%94%84","term_group":0,"term_taxonomy_id":739,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":177,"name":"\ub370\uc774\ud130 \ubd84\uc11d","slug":"%eb%8d%b0%ec%9d%b4%ed%84%b0-%eb%b6%84%ec%84%9d","term_group":0,"term_taxonomy_id":177,"taxonomy":"post_tag","description":"","parent":0,"count":36,"filter":"raw"},{"term_id":164,"name":"\ub370\uc774\ud130 \uc2dc\uac01\ud654","slug":"%eb%8d%b0%ec%9d%b4%ed%84%b0-%ec%8b%9c%ea%b0%81%ed%99%94","term_group":0,"term_taxonomy_id":164,"taxonomy":"post_tag","description":"","parent":0,"count":52,"filter":"raw"},{"term_id":737,"name":"\uc778\ud130\ub799\ud2f0\ube0c \uadf8\ub798\ud504","slug":"%ec%9d%b8%ed%84%b0%eb%9e%99%ed%8b%b0%eb%b8%8c-%ea%b7%b8%eb%9e%98%ed%94%84","term_group":0,"term_taxonomy_id":737,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":738,"name":"\ud30c\uc774\uc36c Plotly","slug":"%ed%8c%8c%ec%9d%b4%ec%8d%ac-plotly","term_group":0,"term_taxonomy_id":738,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"}],"_links":{"self":[{"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/posts\/4442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/comments?post=4442"}],"version-history":[{"count":6,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/posts\/4442\/revisions"}],"predecessor-version":[{"id":4468,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/posts\/4442\/revisions\/4468"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/media\/4465"}],"wp:attachment":[{"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/media?parent=4442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/categories?post=4442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/tags?post=4442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}