{"id":742,"date":"2019-11-06T10:02:58","date_gmt":"2019-11-06T09:02:58","guid":{"rendered":"https:\/\/eaa-online.org\/arc\/blog\/blog\/how-create-eye-candy-graphs-python\/"},"modified":"2022-10-17T15:23:36","modified_gmt":"2022-10-17T13:23:36","slug":"how-create-eye-candy-graphs-python","status":"publish","type":"post","link":"https:\/\/eaa-online.org\/arc\/blog\/2019\/11\/06\/how-create-eye-candy-graphs-python\/","title":{"rendered":"How to create eye-candy graphs with python"},"content":{"rendered":"<p>Having attended many presentations over the years, I started noticing that tables are such a drag. Unfortunately, we are used to a presentation format that makes us want to show tables.<\/p>\n<div>Why?<\/div>\n<div><\/div>\n<div>Quite often presenters only reveal the parts of a table that support their story. So, when was the last time you saw a row with low R-squares? And the coefficients? Right, these often join stars.<\/div>\n<div><\/div>\n<div>Presenters often rely on animated circles and boxes to highlight the important parts of a table. Doesn&#8217;t this demonstrate that tabular information is not at all clear and obvious? Right.<\/div>\n<div><\/div>\n<div>So why present tables in the first place? Tables disrupt the flow of the presentation, hardly prompt questions, occupy lots of space, and crowd out time.<\/div>\n<div><\/div>\n<div>Skilled presenters move tables to the end of a presentation, they expect to skip discussing them altogether.<\/div>\n<div><\/div>\n<div>Having also attended many presentations by investments banks, I realized that there are ways to improve your presentation.<\/div>\n<div><\/div>\n<div>Use graphs!<\/div>\n<div><\/div>\n<div>The problem is that statistical packages offer limited graph support. Also Excel has a limited choice of graphs. However, programming languages such as Python and R are almost unrestricted.<\/div>\n<div><\/div>\n<div>The link below offer Python code that converts New Zealand bank data into nice graphs, see above for the end-result. The libraries that I use are matplotlib (<a href=\"https:\/\/matplotlib.org\">https:\/\/matplotlib.org<\/a>) and seaborn (<a href=\"https:\/\/seaborn.pydata.org\">https:\/\/seaborn.pydata.org<\/a>). The former is feature rich, a bit of overkill. Seaborn is great for statistics.<\/div>\n<div><\/div>\n<h4>RBNZ_Dashboard &#8211; and nice graphs<\/h4>\n<div><\/div>\n<div>See my github link to the Reserve Bank data: <a href=\"https:\/\/github.com\/blucap\/RBNZ_Dashboard\">https:\/\/github.com\/blucap\/RBNZ_Dashboard<\/a><\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Having attended many presentations over the years, I started noticing that tables are such a drag. Unfortunately, we are used to a presentation format that makes us want to show tables. Why? Quite often presenters only reveal the parts of a table that support their story. So, when was the last time you saw a [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":743,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[125],"tags":[4],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.12 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to create eye-candy graphs with python - ARC<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create eye-candy graphs with python - ARC\" \/>\n<meta property=\"og:description\" content=\"Having attended many presentations over the years, I started noticing that tables are such a drag. Unfortunately, we are used to a presentation format that makes us want to show tables. Why? Quite often presenters only reveal the parts of a table that support their story. So, when was the last time you saw a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/eaa-online.org\/arc\/blog\/2019\/11\/06\/how-create-eye-candy-graphs-python\/\" \/>\n<meta property=\"og:site_name\" content=\"ARC\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-06T09:02:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-17T13:23:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/eaa-online.org\/app\/uploads\/sites\/3\/2018\/11\/ml_graphs.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"607\" \/>\n\t<meta property=\"og:image:height\" content=\"480\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"MARTIEN LUBBERINK\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"MARTIEN LUBBERINK\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/eaa-online.org\/arc\/blog\/2019\/11\/06\/how-create-eye-candy-graphs-python\/\",\"url\":\"https:\/\/eaa-online.org\/arc\/blog\/2019\/11\/06\/how-create-eye-candy-graphs-python\/\",\"name\":\"How to create eye-candy graphs with python - ARC\",\"isPartOf\":{\"@id\":\"https:\/\/eaa-online.org\/arc\/#website\"},\"datePublished\":\"2019-11-06T09:02:58+00:00\",\"dateModified\":\"2022-10-17T13:23:36+00:00\",\"author\":{\"@id\":\"https:\/\/eaa-online.org\/arc\/#\/schema\/person\/d5611ef59a8723987b89e2177335aeac\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/eaa-online.org\/arc\/blog\/2019\/11\/06\/how-create-eye-candy-graphs-python\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/eaa-online.org\/arc\/#website\",\"url\":\"https:\/\/eaa-online.org\/arc\/\",\"name\":\"ARC\",\"description\":\"Advanced Resources Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/eaa-online.org\/arc\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/eaa-online.org\/arc\/#\/schema\/person\/d5611ef59a8723987b89e2177335aeac\",\"name\":\"MARTIEN LUBBERINK\",\"url\":\"https:\/\/eaa-online.org\/arc\/blog\/members\/23\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create eye-candy graphs with python - ARC","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"How to create eye-candy graphs with python - ARC","og_description":"Having attended many presentations over the years, I started noticing that tables are such a drag. Unfortunately, we are used to a presentation format that makes us want to show tables. Why? Quite often presenters only reveal the parts of a table that support their story. So, when was the last time you saw a [&hellip;]","og_url":"https:\/\/eaa-online.org\/arc\/blog\/2019\/11\/06\/how-create-eye-candy-graphs-python\/","og_site_name":"ARC","article_published_time":"2019-11-06T09:02:58+00:00","article_modified_time":"2022-10-17T13:23:36+00:00","og_image":[{"width":607,"height":480,"url":"https:\/\/eaa-online.org\/app\/uploads\/sites\/3\/2018\/11\/ml_graphs.jpeg","type":"image\/jpeg"}],"author":"MARTIEN LUBBERINK","twitter_card":"summary_large_image","twitter_misc":{"Written by":"MARTIEN LUBBERINK","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/eaa-online.org\/arc\/blog\/2019\/11\/06\/how-create-eye-candy-graphs-python\/","url":"https:\/\/eaa-online.org\/arc\/blog\/2019\/11\/06\/how-create-eye-candy-graphs-python\/","name":"How to create eye-candy graphs with python - ARC","isPartOf":{"@id":"https:\/\/eaa-online.org\/arc\/#website"},"datePublished":"2019-11-06T09:02:58+00:00","dateModified":"2022-10-17T13:23:36+00:00","author":{"@id":"https:\/\/eaa-online.org\/arc\/#\/schema\/person\/d5611ef59a8723987b89e2177335aeac"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/eaa-online.org\/arc\/blog\/2019\/11\/06\/how-create-eye-candy-graphs-python\/"]}]},{"@type":"WebSite","@id":"https:\/\/eaa-online.org\/arc\/#website","url":"https:\/\/eaa-online.org\/arc\/","name":"ARC","description":"Advanced Resources Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/eaa-online.org\/arc\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/eaa-online.org\/arc\/#\/schema\/person\/d5611ef59a8723987b89e2177335aeac","name":"MARTIEN LUBBERINK","url":"https:\/\/eaa-online.org\/arc\/blog\/members\/23\/"}]}},"jetpack_featured_media_url":"https:\/\/eaa-online.org\/app\/uploads\/sites\/3\/2018\/11\/ml_graphs.jpeg","_links":{"self":[{"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/posts\/742"}],"collection":[{"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/comments?post=742"}],"version-history":[{"count":1,"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/posts\/742\/revisions"}],"predecessor-version":[{"id":3960,"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/posts\/742\/revisions\/3960"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/media\/743"}],"wp:attachment":[{"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/media?parent=742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/categories?post=742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eaa-online.org\/arc\/wp-json\/wp\/v2\/tags?post=742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}