{"id":4097,"date":"2024-12-24T07:18:19","date_gmt":"2024-12-23T22:18:19","guid":{"rendered":"https:\/\/secondlife.lol\/?p=4097"},"modified":"2024-12-24T07:36:16","modified_gmt":"2024-12-23T22:36:16","slug":"python-visualization-dual-axis-chart-guide","status":"publish","type":"post","link":"https:\/\/secondlife.lol\/en\/python-visualization-dual-axis-chart-guide\/","title":{"rendered":"The Magic of Python Visualization: A Complete Guide to Creating Dual-Axis Charts (2024)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\ub370\uc774\ud130\ub97c \ubcf4\ub294 \uc0c8\ub85c\uc6b4 \uc2dc\uac01, \uc774\uc911\ucd95 \ucc28\ud2b8\uc758 \ub9e4\ub825\uc5d0 \ube60\uc838\ubcf4\uc2e0 \uc801 \uc788\uc73c\uc2e0\uac00\uc694? <a href=\"http:\/\/python.org\" target=\"_blank\" rel=\"noopener\">\ud30c\uc774\uc36c<\/a> \uc2dc\uac01\ud654\ub294 \ub354 \uc774\uc0c1 \uc804\ubb38\uac00\ub4e4\ub9cc\uc758 \uc601\uc5ed\uc774 \uc544\ub2d9\ub2c8\ub2e4. \uc624\ub298\uc740 \uc5ec\ub7ec\ubd84\uacfc \ud568\uaed8 \ud30c\uc774\uc36c\uc744 \uc0ac\uc6a9\ud558\uc5ec \uba4b\uc9c4 \ucc28\ud2b8\ub97c \ub9cc\ub4dc\ub294 \uc5ec\uc815\uc744 \ub5a0\ub098\ubcf4\ub824\uace0 \ud569\ub2c8\ub2e4.<\/p>\n\n\n<style>.kb-image4097_9aabe6-9b .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-image4097_9aabe6-9b img.kb-img, .kb-image4097_9aabe6-9b .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-image4097_9aabe6-9b\"><figure class=\"aligncenter size-medium_large\"><img decoding=\"async\" width=\"768\" height=\"450\" src=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-24-768x450.jpg\" alt=\"\uc774\uc911\ucd95 \ucc28\ud2b8 \uc608\uc2dc \uadf8\ub9bc\" class=\"kb-img wp-image-4101\" srcset=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-24-768x450.jpg 768w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-24-300x176.jpg 300w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-24-600x352.jpg 600w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-24-18x12.jpg 18w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-24.jpg 933w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\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\">\uc774\uc911\ucd95 \ucc28\ud2b8\uc758 \uc774\ud574<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\uc911\ucd95 \ucc28\ud2b8\ub294 \uc11c\ub85c \ub2e4\ub978 \uc2a4\ucf00\uc77c\uc744 \uac00\uc9c4 \ub370\uc774\ud130\ub97c \ud558\ub098\uc758 \uadf8\ub798\ud504\uc5d0\uc11c \ud6a8\uacfc\uc801\uc73c\ub85c \ud45c\ud604\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 \uac15\ub825\ud55c \uc2dc\uac01\ud654 \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uc8fc\uc2dd \uac00\uaca9\uacfc \uac70\ub798\ub7c9\ucc98\ub7fc \ubc94\uc704\uac00 \ub9e4\uc6b0 \ub2e4\ub978 \ub370\uc774\ud130\ub97c \ub3d9\uc2dc\uc5d0 \ud45c\ud604\ud560 \ub54c \ud2b9\ud788 \uc720\uc6a9\ud558\uc8e0.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud30c\uc774\uc36c \uc2dc\uac01\ud654 \ucf54\ub4dc<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>import matplotlib.pyplot as plt\nimport numpy as np\n\n# \ub370\uc774\ud130 \uc900\ube44\nx = np.linspace(0, 10, 100)\ny1 = np.sin(x)\ny2 = 100 * np.cos(x)\n\n# \uadf8\ub798\ud504 \uc0dd\uc131\nfig, ax1 = plt.subplots(figsize=(10, 6))\n\n# \uccab \ubc88\uc9f8 y\ucd95 \uc124\uc815\ncolor = 'tab:blue'\nax1.set_xlabel('X axis')\nax1.set_ylabel('First Y axis', color=color)\nline1 = ax1.plot(x, y1, color=color, label='Sin')\nax1.tick_params(axis='y', labelcolor=color)\n\n# \ub450 \ubc88\uc9f8 y\ucd95 \uc0dd\uc131\nax2 = ax1.twinx()\ncolor = 'tab:red'\nax2.set_ylabel('Second Y axis', color=color)\nline2 = ax2.plot(x, y2, color=color, label='Cos')\nax2.tick_params(axis='y', labelcolor=color)\n\nplt.title('Python Visualization: Dual Axis Chart Example')\nplt.show()<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\uc774\uc911\ucd95 \ucc28\ud2b8 \uc0ac\uc6a9 \uc2dc \uc8fc\uc758\uc0ac\ud56d<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\uc911\ucd95 \ucc28\ud2b8\ub294 \uac15\ub825\ud55c \ub3c4\uad6c\uc774\uc9c0\ub9cc, \uc2e0\uc911\ud558\uac8c \uc0ac\uc6a9\ud574\uc57c \ud569\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uc774\uc911\ucd95 \ucc28\ud2b8 \uc791\uc131 \uc2dc \uace0\ub824\ud574\uc57c \ud560 \ud575\uc2ec \uc8fc\uc758\uc0ac\ud56d\uc785\ub2c8\ub2e4:<\/p>\n\n\n<style>.wp-block-kadence-advancedheading.kt-adv-heading4097_22f30e-66, .wp-block-kadence-advancedheading.kt-adv-heading4097_22f30e-66[data-kb-block=\"kb-adv-heading4097_22f30e-66\"]{font-style:normal;}.wp-block-kadence-advancedheading.kt-adv-heading4097_22f30e-66 mark.kt-highlight, .wp-block-kadence-advancedheading.kt-adv-heading4097_22f30e-66[data-kb-block=\"kb-adv-heading4097_22f30e-66\"] 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-heading4097_22f30e-66 img.kb-inline-image, .wp-block-kadence-advancedheading.kt-adv-heading4097_22f30e-66[data-kb-block=\"kb-adv-heading4097_22f30e-66\"] img.kb-inline-image{width:150px;vertical-align:baseline;}<\/style>\n<h3 class=\"kt-adv-heading4097_22f30e-66 wp-block-kadence-advancedheading\" data-kb-block=\"kb-adv-heading4097_22f30e-66\">\ub370\uc774\ud130 \uc2a4\ucf00\uc77c \uad00\ub9ac<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ucd95\ucc99 \uc124\uc815\uc744 \uc2e0\uc911\ud558\uac8c \ud574\uc57c \ud569\ub2c8\ub2e4. \uc798\ubabb\ub41c \ucd95\ucc99\uc740 \ub370\uc774\ud130 \ud574\uc11d\uc744 \uc65c\uace1\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n\n\n\n<li>\ub450 \ub370\uc774\ud130 \uc2dc\ub9ac\uc988\uc758 \uad00\uacc4\uac00 \uba85\ud655\ud788 \ub4dc\ub7ec\ub098\ub3c4\ub85d \uc2a4\ucf00\uc77c\uc744 \uc870\uc815\ud574\uc57c \ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n\n\n<style>.wp-block-kadence-advancedheading.kt-adv-heading4097_1ba8ab-e7, .wp-block-kadence-advancedheading.kt-adv-heading4097_1ba8ab-e7[data-kb-block=\"kb-adv-heading4097_1ba8ab-e7\"]{font-style:normal;}.wp-block-kadence-advancedheading.kt-adv-heading4097_1ba8ab-e7 mark.kt-highlight, .wp-block-kadence-advancedheading.kt-adv-heading4097_1ba8ab-e7[data-kb-block=\"kb-adv-heading4097_1ba8ab-e7\"] 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-heading4097_1ba8ab-e7 img.kb-inline-image, .wp-block-kadence-advancedheading.kt-adv-heading4097_1ba8ab-e7[data-kb-block=\"kb-adv-heading4097_1ba8ab-e7\"] img.kb-inline-image{width:150px;vertical-align:baseline;}<\/style>\n<h3 class=\"kt-adv-heading4097_1ba8ab-e7 wp-block-kadence-advancedheading\" data-kb-block=\"kb-adv-heading4097_1ba8ab-e7\">\uc2dc\uac01\uc801 \uba85\ud655\uc131<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\uac01 \ucd95\uacfc \ub370\uc774\ud130 \uc2dc\ub9ac\uc988\ub294 \ud655\uc2e4\ud788 \uad6c\ubd84\ub418\ub294 \uc0c9\uc0c1\uc744 \uc0ac\uc6a9\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li>\ubc94\ub840 \uc704\uce58\ub97c \uc801\uc808\ud788 \ubc30\uce58\ud558\uc5ec \uac00\ub3c5\uc131\uc744 \ud655\ubcf4\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li>\uadf8\ub9ac\ub4dc \ub77c\uc778\uc744 \ucd94\uac00\ud558\uc5ec \ub370\uc774\ud130 \uc77d\uae30 \uc6a9\uc774\uc131\uc744 \ub192\uc785\ub2c8\ub2e4.<\/li>\n<\/ul>\n\n\n<style>.wp-block-kadence-advancedheading.kt-adv-heading4097_886b70-6b, .wp-block-kadence-advancedheading.kt-adv-heading4097_886b70-6b[data-kb-block=\"kb-adv-heading4097_886b70-6b\"]{font-style:normal;}.wp-block-kadence-advancedheading.kt-adv-heading4097_886b70-6b mark.kt-highlight, .wp-block-kadence-advancedheading.kt-adv-heading4097_886b70-6b[data-kb-block=\"kb-adv-heading4097_886b70-6b\"] 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-heading4097_886b70-6b img.kb-inline-image, .wp-block-kadence-advancedheading.kt-adv-heading4097_886b70-6b[data-kb-block=\"kb-adv-heading4097_886b70-6b\"] img.kb-inline-image{width:150px;vertical-align:baseline;}<\/style>\n<h3 class=\"kt-adv-heading4097_886b70-6b wp-block-kadence-advancedheading\" data-kb-block=\"kb-adv-heading4097_886b70-6b\">\ub300\uc548 \uace0\ub824<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ub370\uc774\ud130 \uc2dc\ub9ac\uc988\uac00 \ub108\ubb34 \ub2e4\ub978 \uacbd\uc6b0, \ubcc4\ub3c4\uc758 \ucc28\ud2b8\ub85c \ubd84\ub9ac\ud558\ub294 \uac83\uc744 \uace0\ub824\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li>\uc778\ub371\uc2a4 \ucc28\ud2b8\ub098 \uc815\uaddc\ud654\ub41c \uac12\uc744 \uc0ac\uc6a9\ud558\ub294 \uac83\ub3c4 \uc88b\uc740 \ub300\uc548\uc774 \ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud65c\uc6a9 \uc0ac\ub840<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\ud30c\uc774\uc36c \uc2dc\uac01\ud654 \uae30\ubc95 \uc911 \uc774\uc911\ucd95 \ucc28\ud2b8\ub294 \ub2e4\uc591\ud55c \ubd84\uc57c\uc5d0\uc11c \uc720\uc6a9\ud558\uac8c \ud65c\uc6a9\ub429\ub2c8\ub2e4. \ud2b9\ud788 \ub2e4\uc74c\uacfc \uac19\uc740 \uc0c1\ud669\uc5d0\uc11c \uadf8 \uac00\uce58\uac00 \ub3cb\ubcf4\uc785\ub2c8\ub2e4:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\uc8fc\uc2dd \uc2dc\uc7a5 \ubd84\uc11d<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\uc8fc\uac00\uc640 \uac70\ub798\ub7c9\uc744 \ub3d9\uc2dc\uc5d0 \ud45c\uc2dc\ud558\uc5ec \uac00\uaca9 \ubcc0\ub3d9\uacfc \uac70\ub798 \ud65c\ub3d9\uc758 \uad00\uacc4\ub97c \ud30c\uc545\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n\n\n\n<li>\uc8fc\uac00\uc640 \uae30\uc220\uc801 \uc9c0\ud45c(\uc608: MACD, RSI)\ub97c \ud568\uaed8 \ud45c\uc2dc\ud558\uc5ec \ucd94\uc138\uc640 \ubaa8\uba58\ud140\uc744 \ubd84\uc11d\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\uae30\uc0c1 \ub370\uc774\ud130 \ubd84\uc11d<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\uae30\uc628\uacfc \uac15\uc218\ub7c9\uc744 \ub3d9\uc2dc\uc5d0 \ud45c\uc2dc\ud558\uc5ec \ub0a0\uc528 \ud328\ud134\uc744 \uc885\ud569\uc801\uc73c\ub85c \ud30c\uc545\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n\n\n\n<li>\uae30\uc628\uacfc \uc2b5\ub3c4\ub97c \ud568\uaed8 \ud45c\uc2dc\ud558\uc5ec \uccb4\uac10\uc628\ub3c4\ub098 \ubd88\ucf8c\uc9c0\uc218\uc640 \uac19\uc740 \ubcf5\ud569\uc801\uc778 \uae30\uc0c1 \ud604\uc0c1\uc744 \ubd84\uc11d\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\uacbd\uc81c \uc9c0\ud45c \ubd84\uc11d<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GDP\uc640 \uc2e4\uc5c5\ub960\uc758 \uad00\uacc4\ub97c \uc2dc\uac01\ud654\ud558\uc5ec \uacbd\uc81c \uc131\uc7a5\uacfc \uace0\uc6a9 \uc2dc\uc7a5\uc758 \uc5f0\uad00\uc131\uc744 \ud30c\uc545\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n\n\n\n<li>\ubb3c\uac00\uc0c1\uc2b9\ub960\uacfc \uae08\ub9ac\ub97c \ub3d9\uc2dc\uc5d0 \ud45c\uc2dc\ud558\uc5ec \ud1b5\ud654 \uc815\ucc45\uc758 \ud6a8\uacfc\ub97c \ubd84\uc11d\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\ub9c8\ucf00\ud305 \uc131\uacfc \ubd84\uc11d<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\uad11\uace0 \uc9c0\ucd9c\uacfc \ub9e4\ucd9c\uc561\uc744 \ub3d9\uc2dc\uc5d0 \ud45c\uc2dc\ud558\uc5ec \ub9c8\ucf00\ud305 \ud6a8\uc728\uc131\uc744 \ud3c9\uac00\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n\n\n\n<li>\uace0\uac1d \uc720\uc785\ub7c9\uacfc \uc804\ud658\uc728\uc744 \ud568\uaed8 \ud45c\uc2dc\ud558\uc5ec \ub9c8\ucf00\ud305 \ucea0\ud398\uc778\uc758 \ud6a8\uacfc\ub97c \ubd84\uc11d\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\uc5d0\ub108\uc9c0 \uc18c\ube44 \ubd84\uc11d<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\uc804\ub825 \uc18c\ube44\ub7c9\uacfc \uc678\ubd80 \uae30\uc628\uc744 \ub3d9\uc2dc\uc5d0 \ud45c\uc2dc\ud558\uc5ec \ub0a0\uc528\uac00 \uc5d0\ub108\uc9c0 \uc218\uc694\uc5d0 \ubbf8\uce58\ub294 \uc601\ud5a5\uc744 \ud30c\uc545\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n\n\n\n<li>\uc7ac\uc0dd \uc5d0\ub108\uc9c0 \uc0dd\uc0b0\ub7c9\uacfc \ud654\uc11d \uc5f0\ub8cc \uc0ac\uc6a9\ub7c9\uc744 \ube44\uad50\ud558\uc5ec \uc5d0\ub108\uc9c0 \uc804\ud658 \ucd94\uc138\ub97c \ubd84\uc11d\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\uc911\ucd95 \ucc28\ud2b8\ub294 \uc11c\ub85c \ub2e4\ub978 \ub2e8\uc704\ub098 \uc2a4\ucf00\uc77c\uc744 \uac00\uc9c4 \ub370\uc774\ud130\ub97c \ud6a8\uacfc\uc801\uc73c\ub85c \ube44\uad50\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\uc5b4, \ubcf5\uc7a1\ud55c \uad00\uacc4\ub97c \uc9c1\uad00\uc801\uc73c\ub85c \uc774\ud574\ud558\ub294 \ub370 \ub3c4\uc6c0\uc744 \uc90d\ub2c8\ub2e4. \uadf8\ub7ec\ub098 \uc0ac\uc6a9 \uc2dc \ucd95\ucc99 \uc124\uc815\uc5d0 \uc8fc\uc758\ub97c \uae30\uc6b8\uc5ec \ub370\uc774\ud130 \ud574\uc11d\uc774 \uc65c\uace1\ub418\uc9c0 \uc54a\ub3c4\ub85d \ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"># \ub610\ub2e4\ub978 \uc608\uc2dc<\/h3>\n\n\n<style>.kb-image4097_496ba5-3e .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-image4097_496ba5-3e img.kb-img, .kb-image4097_496ba5-3e .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-image4097_496ba5-3e\"><figure class=\"aligncenter size-medium_large\"><img decoding=\"async\" width=\"768\" height=\"458\" src=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-25-768x458.jpg\" alt=\"\uc774\uc911\ucd95 \ucc28\ud2b8 \uc608\uc2dc2 \uadf8\ub9bc\" class=\"kb-img wp-image-4102\" srcset=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-25-768x458.jpg 768w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-25-300x179.jpg 300w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-25-600x358.jpg 600w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-25-18x12.jpg 18w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/image-1-25.jpg 989w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">#\ucf54\ub4dc \ube14\ub85d<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>import matplotlib.pyplot as plt\nimport numpy as np\n\n# \ub370\uc774\ud130 \uc900\ube44\nx = np.arange(0, 10, 1)\ny1 = np.random.randint(1, 10, size=10)\ny2 = np.random.randint(10, 100, size=10)\n\n# \uadf8\ub798\ud504 \uc0dd\uc131\nfig, ax1 = plt.subplots(figsize=(10, 6))\n\n# \uccab \ubc88\uc9f8 y\ucd95 \uc124\uc815 (\ub9c9\ub300 \uadf8\ub798\ud504)\ncolor = 'tab:purple'\nax1.set_xlabel('X axis')\nax1.set_ylabel('First Y axis', color=color)\nax1.bar(x, y1, color=color, alpha=0.6, label='Data 1')\nax1.tick_params(axis='y', labelcolor=color)\n\n# \ub450 \ubc88\uc9f8 y\ucd95 \uc0dd\uc131 (\uc120 \uadf8\ub798\ud504)\ntwin_ax = ax1.twinx()\ncolor = 'tab:pink'\ntwin_ax.set_ylabel('Second Y axis', color=color)\ntwin_ax.plot(x, y2, color=color, marker='o', label='Data 2')\ntwin_ax.tick_params(axis='y', labelcolor=color)\n\n# \uc81c\ubaa9 \ubc0f \ubc94\ub840 \uc124\uc815\nplt.title('Dual Axis Chart Example: Bar and Line Graph')\nfig.tight_layout()\nplt.show()<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"># \ucf54\ub4dc \ud574\uc124<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\ud544\uc694\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac(matplotlib, numpy)\ub97c \uc784\ud3ec\ud2b8\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li>NumPy\ub97c \uc0ac\uc6a9\ud558\uc5ec x\ucd95 \ub370\uc774\ud130\uc640 \ub450 \uac1c\uc758 y\ucd95 \ub370\uc774\ud130(y1, y2)\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li><code>plt.subplots()<\/code>\ub97c \uc0ac\uc6a9\ud558\uc5ec \uadf8\ub798\ud504 \uac1d\uccb4\uc640 \uccab \ubc88\uc9f8 \ucd95(ax1)\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li>\uccab \ubc88\uc9f8 y\ucd95\uc5d0 \ub300\ud55c \uc124\uc815\uc744 \ud569\ub2c8\ub2e4:\n<ul class=\"wp-block-list\">\n<li>\ubcf4\ub77c\uc0c9 \ub9c9\ub300 \uadf8\ub798\ud504\ub85c y1 \ub370\uc774\ud130\ub97c \ud45c\uc2dc\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li>x\ucd95\uacfc y\ucd95 \ub808\uc774\ube14\uc744 \uc124\uc815\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>ax1.twinx()<\/code>\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub450 \ubc88\uc9f8 y\ucd95(twin_ax)\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4:\n<ul class=\"wp-block-list\">\n<li>\ubd84\ud64d\uc0c9 \uc120 \uadf8\ub798\ud504\ub85c y2 \ub370\uc774\ud130\ub97c \ud45c\uc2dc\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li>\ub450 \ubc88\uc9f8 y\ucd95 \ub808\uc774\ube14\uc744 \uc124\uc815\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\uadf8\ub798\ud504 \uc81c\ubaa9\uc744 \uc124\uc815\ud558\uace0,&nbsp;<code>tight_layout()<\/code>\uc73c\ub85c \ub808\uc774\uc544\uc6c3\uc744 \uc870\uc815\ud55c \ud6c4 \uadf8\ub798\ud504\ub97c \ud45c\uc2dc\ud569\ub2c8\ub2e4.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"># \uc6a9\uc5b4 \ud574\uc124<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\uc774\uc911\ucd95 \ucc28\ud2b8 (Dual Axis Chart)<\/strong>: \ud558\ub098\uc758 \uadf8\ub798\ud504\uc5d0 \ub450 \uac1c\uc758 y\ucd95\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc11c\ub85c \ub2e4\ub978 \uc2a4\ucf00\uc77c\uc774\ub098 \ub2e8\uc704\ub97c \uac00\uc9c4 \ub370\uc774\ud130 \uc2dc\ub9ac\uc988\ub97c \ub3d9\uc2dc\uc5d0 \ud45c\ud604\ud558\ub294 \ucc28\ud2b8 \uc720\ud615.<\/li>\n\n\n\n<li><strong>matplotlib<\/strong>: Python \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\ub97c \uc704\ud55c \ub370\uc774\ud130 \uc2dc\uac01\ud654 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub85c, \ub2e4\uc591\ud55c \uc720\ud615\uc758 \uadf8\ub798\ud504\uc640 \ucc28\ud2b8\ub97c \uc0dd\uc131\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 \ub3c4\uad6c.<\/li>\n\n\n\n<li><strong>NumPy<\/strong>: \uc218\uce58 \uacc4\uc0b0\uc744 \uc704\ud55c Python \ub77c\uc774\ube0c\ub7ec\ub9ac\ub85c, \ub300\uaddc\ubaa8 \ub2e4\ucc28\uc6d0 \ubc30\uc5f4\uacfc \ud589\ub82c\uc744 \ud6a8\uc728\uc801\uc73c\ub85c \ucc98\ub9ac\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 \ub3c4\uad6c.<\/li>\n\n\n\n<li><strong>plt.subplots()<\/strong>: matplotlib\uc5d0\uc11c \uc0c8\ub85c\uc6b4 Figure(\uadf8\ub9bc)\uc640 \ud558\ub098 \uc774\uc0c1\uc758 Axes(\ucd95)\ub97c \uc0dd\uc131\ud558\ub294 \ud568\uc218.<\/li>\n\n\n\n<li><strong>ax1.twinx()<\/strong>: \uae30\uc874 \ucd95\uacfc x\ucd95\uc744 \uacf5\uc720\ud558\uba74\uc11c \uc0c8\ub85c\uc6b4 y\ucd95\uc744 \uc0dd\uc131\ud558\ub294 matplotlib \uba54\uc11c\ub4dc. \uc774\uc911\ucd95 \ucc28\ud2b8\ub97c \ub9cc\ub4e4 \ub54c \uc0ac\uc6a9\ub428.<\/li>\n\n\n\n<li><strong>tight_layout()<\/strong>: matplotlib\uc5d0\uc11c \uadf8\ub798\ud504 \uc694\uc18c\ub4e4 \uc0ac\uc774\uc758 \uac04\uaca9\uc744 \uc790\ub3d9\uc73c\ub85c \uc870\uc815\ud558\uc5ec \uacb9\uce58\uc9c0 \uc54a\ub3c4\ub85d \ud558\ub294 \ud568\uc218.<\/li>\n\n\n\n<li><strong>\ucd95\ucc99 (Scale)<\/strong>: \uadf8\ub798\ud504\uc5d0\uc11c \ub370\uc774\ud130 \uac12\uc744 \ud45c\ud604\ud558\ub294 \ub2e8\uc704\ub098 \ubc94\uc704. \uc774\uc911\ucd95 \ucc28\ud2b8\uc5d0\uc11c\ub294 \uac01 \ucd95\ub9c8\ub2e4 \ub2e4\ub978 \ucd95\ucc99\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc74c.<\/li>\n\n\n\n<li><strong>\uc815\uaddc\ud654 (Normalization)<\/strong>: \uc11c\ub85c \ub2e4\ub978 \ubc94\uc704\uc758 \ub370\uc774\ud130\ub97c \uacf5\ud1b5\ub41c \uc2a4\ucf00\uc77c\ub85c \ubcc0\ud658\ud558\ub294 \uacfc\uc815. \uc774\uc911\ucd95 \ucc28\ud2b8\uc758 \ub300\uc548\uc73c\ub85c \uc0ac\uc6a9\ub420 \uc218 \uc788\uc74c.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\ub7f0 \ucc28\ud2b8\uc5d0 \uad00\uc2ec\uc774 \uc788\uc73c\uc2e0 \ubd84\uc740 \ud30c\uc774\uc36c\uc73c\ub85c \uc2dc\uac01\ud654 \ud560 \uc218 \uc788\ub294 \ud2b9\uc774\ud55c \uadf8\ub798\ud504\uc5d0\ub3c4 \uad00\uc2ec\uc774 \ub9ce\uc73c\uc2dc\uc9c0 \uc54a\ub098\uc694? <a href=\"https:\/\/secondlife.lol\/student-performance-graph-python\/\" data-type=\"post\" data-id=\"4027\">\ud30c\uc774\uc36c \uc2dc\uac01\ud654\ub85c \uc131\uc801 \ubcc0\ud654 \ube44\uad50 \uadf8\ub798\ud504 \ub9cc\ub4e4\uae30: \uc810\uc218 \uc0c1\uc2b9\/\ud558\ub77d \uc0c9\uc0c1 \uad6c\ubd84<\/a> \ud3ec\uc2a4\ud2b8\ub97c \ud1b5\ud574\uc11c \ub3c5\ud2b9\ud55c \uadf8\ub798\ud504\ub97c \ub9cc\ub098\ubcf4\uc138\uc694!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ub370\uc774\ud130\ub97c \ubcf4\ub294 \uc0c8\ub85c\uc6b4 \uc2dc\uac01, \uc774\uc911\ucd95 \ucc28\ud2b8\uc758 \ub9e4\ub825\uc5d0 \ube60\uc838\ubcf4\uc2e0 \uc801 \uc788\uc73c\uc2e0\uac00\uc694?&#8230;<\/p>","protected":false},"author":3,"featured_media":4105,"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":[177,636,450],"class_list":["post-4097","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-coding","tag-177","tag-636","tag-450"],"taxonomy_info":{"category":[{"value":3,"label":"\ud30c\uc774\uc36c(Python)"}],"post_tag":[{"value":177,"label":"\ub370\uc774\ud130 \ubd84\uc11d"},{"value":636,"label":"\uc774\uc911\ucd95 \ucc28\ud2b8"},{"value":450,"label":"\ud30c\uc774\uc36c \uc2dc\uac01\ud654"}]},"featured_image_src_large":["https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/12\/\uc774\uc911\ucd95-\ucc28\ud2b8-\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":119,"filter":"raw","cat_ID":3,"category_count":119,"category_description":"","cat_name":"\ud30c\uc774\uc36c(Python)","category_nicename":"python-coding","category_parent":20}],"tag_info":[{"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":636,"name":"\uc774\uc911\ucd95 \ucc28\ud2b8","slug":"%ec%9d%b4%ec%a4%91%ec%b6%95-%ec%b0%a8%ed%8a%b8","term_group":0,"term_taxonomy_id":636,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":450,"name":"\ud30c\uc774\uc36c \uc2dc\uac01\ud654","slug":"%ed%8c%8c%ec%9d%b4%ec%8d%ac-%ec%8b%9c%ea%b0%81%ed%99%94","term_group":0,"term_taxonomy_id":450,"taxonomy":"post_tag","description":"","parent":0,"count":18,"filter":"raw"}],"_links":{"self":[{"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/posts\/4097","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=4097"}],"version-history":[{"count":9,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/posts\/4097\/revisions"}],"predecessor-version":[{"id":4163,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/posts\/4097\/revisions\/4163"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/media\/4105"}],"wp:attachment":[{"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/media?parent=4097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/categories?post=4097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/tags?post=4097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}