{"id":3820,"date":"2024-12-05T06:40:58","date_gmt":"2024-12-04T21:40:58","guid":{"rendered":"https:\/\/secondlife.lol\/?p=3820"},"modified":"2024-12-05T07:35:23","modified_gmt":"2024-12-04T22:35:23","slug":"english-number-units-3d-visualization-with-python","status":"publish","type":"post","link":"https:\/\/secondlife.lol\/en\/english-number-units-3d-visualization-with-python\/","title":{"rendered":"Numeric units in English? 3D visualization in Python, from battleships to vigintillians."},"content":{"rendered":"<p>Hello, everyone! Today we're here with a really exciting topic: how to express numerical units in English and how to use them in the <a href=\"http:\/\/python.org\" target=\"_blank\" rel=\"noopener\">Python<\/a>Have you ever heard the word \"Vigintillion\" before? Can you imagine how big a number that is?<\/p>\n\n\n\n<p>Today, we're going to take some of the largest numerical units in the English language, starting with 'Thousand' and ending with 'Vigintillion', and turn them into stunning 3D graphs using Python's Matplotlib library. In the process, we'll gain a visual understanding of the scale of numbers and experience Python's powerful data visualization capabilities. Let's get started!<\/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\">The expanded world of English numeral units<\/h2>\n\n\n\n<p>Did you know that there are bigger units in the English language to represent large numbers than the ones we're familiar with like \"Million,\" \"Billion,\" and \"Trillion\"? Today we'll cover the following numerical units<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Thousand (10\u00b3, one thousand)<\/li>\n\n\n\n<li>Million (10\u2076, million)<\/li>\n\n\n\n<li>Billion (10\u2079, billion)<\/li>\n\n\n\n<li>Trillion (10\u00b9\u00b2, sunshine)<\/li>\n\n\n\n<li>Quadrillion (10\u00b9\u2075, trillion)<\/li>\n\n\n\n<li>Quintillion (10\u00b9\u2078, cirrus)<\/li>\n\n\n\n<li>Sextillion (10\u00b2\u00b9, ten years)<\/li>\n\n\n\n<li>Septillion (10\u00b2\u2074, date)<\/li>\n\n\n\n<li>Octillion (10\u00b2\u2077, thousandths)<\/li>\n\n\n\n<li>Nonillion (10\u00b3\u2070, white sheep)<\/li>\n\n\n\n<li>Decillion (10\u00b3\u00b3, nineteen)<\/li>\n\n\n\n<li>Undecillion (10\u00b3\u2076, per day)<\/li>\n\n\n\n<li>Duodecillion (10\u00b3\u2079, celestial)<\/li>\n\n\n\n<li>Tredecillion (10\u2074\u00b2, white crystals)<\/li>\n\n\n\n<li>Quattuordecillion (10\u2074\u2075, ten quarters)<\/li>\n\n\n\n<li>Quindecillion (10\u2074\u2078, unipolar)<\/li>\n\n\n\n<li>Sexdecillion (10\u2075\u00b9, celestial pole)<\/li>\n\n\n\n<li>Septendecillion (10\u2075\u2074, One Hundred Thousandth)<\/li>\n\n\n\n<li>Octodecillion (10\u2075\u2077, twelve trillion)<\/li>\n\n\n\n<li>Novemdecillion (10\u2076\u2070, Ilna Utah)<\/li>\n\n\n\n<li>Vigintillion (10\u2076\u00b3, Tennessee)<\/li>\n<\/ol>\n\n\n<style>.kb-image3820_7f3c47-96 .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-image3820_7f3c47-96 img.kb-img, .kb-image3820_7f3c47-96 .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-image3820_7f3c47-96\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1082\" height=\"275\" src=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/image-4-69.jpg\" alt=\"\uc22b\uc790 \ub2e8\uc704 \uc601\uc5b4\ub85c \ud55c\uac78 \ud55c\uae00\ub85c \ud45c\uc2dc\ud55c \uadf8\ub9bc1\" class=\"kb-img wp-image-3824\" srcset=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/image-4-69.jpg 1082w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/image-4-69-300x76.jpg 300w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/image-4-69-600x152.jpg 600w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/image-4-69-768x195.jpg 768w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/image-4-69-18x5.jpg 18w\" sizes=\"(max-width: 1082px) 100vw, 1082px\" \/><\/figure><\/div>\n\n\n<style>.kb-image3820_691212-3c .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-image3820_691212-3c img.kb-img, .kb-image3820_691212-3c .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-image3820_691212-3c\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1200\" height=\"321\" src=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/image-4.png\" alt=\"\uc22b\uc790 \ub2e8\uc704 \uc601\uc5b4\ub85c \ud55c\uac78 \ud55c\uae00\ub85c \ud45c\uc2dc\ud55c \uadf8\ub9bc2\" class=\"kb-img wp-image-3827\" srcset=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/image-4.png 1200w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/image-4-300x80.png 300w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/image-4-600x161.png 600w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/image-4-768x205.png 768w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/image-4-18x5.png 18w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure><\/div>\n\n\n\n<p>These units are often used in science, astronomy, or theoretical math, and they're numbers that you don't see every day.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3D visualization of numerical units in Python<\/h2>\n\n\n\n<p>Now we're going to visualize these huge numerical units in 3D using Python's Matplotlib library. We'll create a 3D bar graph to intuitively compare the size of each unit.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import numpy as np\nimport matplotlib.pyplot as plt\nfrom mpl_toolkits.mplot3d import Axes3D\n\nPrepare the # data\nunits = [\n    'Thousand', 'Million', 'Billion', 'Trillion', 'Quadrillion', 'Quintillion',\n    'Sextillion', 'Septillion', 'Octillion', 'Nonillion', 'Decillion',\n    'Undecillion', 'Duodecillion', 'Tredecillion', 'Quattuordecillion', 'Quindecillion',\n    'Sexdecillion', 'Septendecillion', 'Octodecillion', 'Novemdecillion', 'Vigintillion'\n]\nvalues = np.array([10**3, 10**6, 10**9, 10**12, 10**15, 10**18, 10**21, 10**24, 10**27, 10**30, 10**33,\n                   10**36, 10**39, 10**42, 10**45, 10**48, 10**51, 10**54, 10**57, 10**60, 10**63], dtype=float)\ncolors = plt.cm.viridis(np.linspace(0, 1, len(units)))\n\nSet up the # 3D graph\nfig = plt.figure(figsize=(20, 15))\nax = fig.add_subplot(111, projection='3d')\n\nData for plotting the # bar graph\nx = np.array(len(units))\ny = np.zeros_like(x)\nz = np.zeros_like(x)\n\ndx = dy = 0.8\ndz = np.log10(values)\n\nCreate a # 3D bar graph\nscatter = None\nbars = []\nfor i, (value, color) in enumerate(zip(dz, colors)):\n    bar = ax.bar3d(x[i], y[i], z[i], dx, dy, value, color=color, alpha=0.8)\n    bars.append(bar)\n\nSet the # axis labels\nax.set_xticks(x)\nax.set_xticklabels(units, rotation=45, ha='right')\nax.set_ylabel('Y axis')\nax.set_zlabel('Log10 of Value')\n\nSet the # title\nplt.title('3D Visualization of Extended English Number Units (up to Vigintillion)', fontsize=16)\n\n# Add a color bar\nplt.tight_layout()\nplt.subplots_adjust(right=0.8) # Add right margin\n\nCreate a # color map\nnorm = plt.Normalize(vmin=min(dz), vmax=max(dz))\nsm = plt.cm.ScalarMappable(cmap=plt.cm.viridis, norm=norm)\nsm.set_array([])\n\nAdd a # colorbar (create separate Axes)\ncax = fig.add_axes([0.85, 0.15, 0.03, 0.7]) # [left, bottom, width, height]\ncbar = plt.colorbar(sm, cax=cax)\ncbar.set_label('Log10 of Value', rotation=270, labelpad=15)\n\nplt.show()<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Code commentary<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Import the necessary libraries. Numpy does the math and Matplotlib creates the graphs.<\/li>\n\n\n\n<li>Prepare English numeric units and their corresponding values. This time, we've expanded it to 'Vigintillion'.<\/li>\n\n\n\n<li>Set up a 3D graph and draw a bar for each unit. Use the bar3d function to generate the 3D bars.<\/li>\n\n\n\n<li>Set axis labels and titles, and add color bars to intuitively represent the magnitude of values.<\/li>\n\n\n\n<li>Use a logarithmic scale to effectively represent differences between large numbers. This way, you can show huge differences in size from \"Thousands\" to \"Vigintillion\" in one graph.<\/li>\n<\/ol>\n\n\n<style>.kb-image3820_e91124-f7 .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-image3820_e91124-f7 img.kb-img, .kb-image3820_e91124-f7 .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-image3820_e91124-f7\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1200\" height=\"711\" src=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/image-4-68.jpg\" alt=\"\uc22b\uc790 \ub2e8\uc704 \uc601\uc5b4\ub85c \ub098\ud0c0\ub0b4\uae30 - \ud30c\uc774\uc36c \uc2dc\uac01\ud654 \uadf8\ub9bc\" class=\"kb-img wp-image-3821\" srcset=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/image-4-68.jpg 1200w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/image-4-68-300x178.jpg 300w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/image-4-68-600x356.jpg 600w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/image-4-68-768x455.jpg 768w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/image-4-68-18x12.jpg 18w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><figcaption>(Numeric units in English - Python visualization illustration )<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Numeric in English - The Feel of Python 3D Graphs<\/h2>\n\n\n\n<p>This 3D graph gives you a good idea of the scale of English numerical units: as you go from 'Thousand' to 'Vigintillion', the size of the numbers increases exponentially, but because we're looking at it on a logarithmic scale, it simply appears to increase sequentially. <\/p>\n\n\n\n<p>Visualizations like this make it easier for us to understand the concept of big numbers - we can intuitively grasp how big a 'Billion' is, or how huge a 'Vigintillion' is, and by using Python 3D graphs, we can bring the scale of the numbers to life, not just in terms of height, but also in terms of space.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Organize<\/h2>\n\n\n\n<p>Today we learned how to express numerical units in English, and visualized them in Python 3D graphs, so we could compare unimaginably large numbers at a glance, from 'Thousand' to 'Vigintillion'.<\/p>\n\n\n\n<p>Through this process, we realized how powerful visualization can be over simply listing numbers, especially by leveraging logarithmic scales and 3D graphs to effectively represent data with vast differences in size.<\/p>\n\n\n\n<p>Why not visualize a variety of data in this way? Python and Matplotlib are really powerful tools. They'll help you uncover the stories behind your data. What interesting data can you visualize in 3D next? Let your imagination run wild!<\/p>\n\n\n\n<p>Until next time, we'll be back with another fun topic. Bye! Oh, and by the way, what about the Korean numbering system? <a href=\"http:\/\/secondlife.lol\/en\/how-to-read-number-units-visualization-with-r\/\">Click here to view the<\/a> Expand your knowledge!<\/p>","protected":false},"excerpt":{"rendered":"<p>\uc548\ub155\ud558\uc138\uc694, \uc5ec\ub7ec\ubd84! \uc624\ub298\uc740 \uc815\ub9d0 \ud765\ubbf8\uc9c4\uc9c4\ud55c \uc8fc\uc81c\ub85c \ucc3e\uc544\uc654\uc5b4\uc694. \uc22b\uc790 \ub2e8\uc704 \uc601\uc5b4\ub85c&#8230;<\/p>","protected":false},"author":3,"featured_media":3822,"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":[162,164,557,559,450],"class_list":["post-3820","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-coding","tag-matplotlib","tag-164","tag-557","tag-559","tag-450"],"taxonomy_info":{"category":[{"value":3,"label":"\ud30c\uc774\uc36c(Python)"}],"post_tag":[{"value":162,"label":"Matplotlib"},{"value":164,"label":"\ub370\uc774\ud130 \uc2dc\uac01\ud654"},{"value":557,"label":"\uc22b\uc790 \ub2e8\uc704"},{"value":559,"label":"\uc601\uc5b4 \uc218 \uccb4\uacc4"},{"value":450,"label":"\ud30c\uc774\uc36c \uc2dc\uac01\ud654"}]},"featured_image_src_large":["https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/11\/\uc22b\uc790-\ub2e8\uc704-\uc601\uc5b4\ub85c-\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":162,"name":"Matplotlib","slug":"matplotlib","term_group":0,"term_taxonomy_id":162,"taxonomy":"post_tag","description":"","parent":0,"count":19,"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":557,"name":"\uc22b\uc790 \ub2e8\uc704","slug":"%ec%88%ab%ec%9e%90-%eb%8b%a8%ec%9c%84","term_group":0,"term_taxonomy_id":557,"taxonomy":"post_tag","description":"","parent":0,"count":2,"filter":"raw"},{"term_id":559,"name":"\uc601\uc5b4 \uc218 \uccb4\uacc4","slug":"%ec%98%81%ec%96%b4-%ec%88%98-%ec%b2%b4%ea%b3%84","term_group":0,"term_taxonomy_id":559,"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\/3820","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=3820"}],"version-history":[{"count":6,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/posts\/3820\/revisions"}],"predecessor-version":[{"id":3882,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/posts\/3820\/revisions\/3882"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/media\/3822"}],"wp:attachment":[{"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/media?parent=3820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/categories?post=3820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/secondlife.lol\/en\/wp-json\/wp\/v2\/tags?post=3820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}