{"id":601,"date":"2013-01-05T10:53:44","date_gmt":"2013-01-05T18:53:44","guid":{"rendered":"http:\/\/bellm.org\/blog\/?p=601"},"modified":"2013-01-30T11:29:53","modified_gmt":"2013-01-30T19:29:53","slug":"ideas-for-improving-your-scientific-visualizations","status":"publish","type":"post","link":"http:\/\/bellm.org\/blog\/2013\/01\/05\/ideas-for-improving-your-scientific-visualizations\/","title":{"rendered":"Ideas for Improving Your Scientific Visualizations"},"content":{"rendered":"<p>Scientific graphics are one of the most important means we have of communicating complicated quantitative information.? Here are a few ideas for improving the effectiveness of your figures:<\/p>\n<ul>\n<li><strong>Learn a new feature of your graphics package.<\/strong>? Most of us only use a fraction of the capabilities of our graphics programs.? There&#8217;s much to be gained from digging around in the documentation.? Users of python&#8217;s matplotlib might want to play around with the <a href=\"http:\/\/matplotlib.org\/mpl_toolkits\/axes_grid\/index.html#toolkit-axesgrid-index\">AxesGrid<\/a> toolkit, learn about <a href=\"http:\/\/matplotlib.org\/examples\/animation\/index.html\">animation<\/a> or <a href=\"http:\/\/matplotlib.org\/examples\/widgets\/index.html\">widget<\/a> capabilities, or look through <a href=\"http:\/\/matplotlib.org\/users\/recipes.html\">these recipes<\/a>.? IDL users could define more <a href=\"http:\/\/www.astrobetter.com\/making-fonts-better-in-idl-postscript-output\/\">sensible<\/a> <a href=\"http:\/\/blog.visual.ly\/the-chart-that-wasnt-there-avoiding-disappearing-plots-in-presentations\/\">plotting defaults<\/a>.<\/li>\n<li><strong>Read a book.<\/strong>? Edward Tufte&#8217;s <a href=\"http:\/\/www.amazon.com\/gp\/product\/0961392142\/ref=as_li_ss_tl?ie=UTF8&amp;tag=explthedataun-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0961392142\">Visual Display of Quantitative Information<\/a><img loading=\"lazy\" decoding=\"async\" class=\"swbmecemefinlaytvgob zewkrqdkmivfkxaadwxp\" style=\"border: none !important; margin: 0px !important;\" src=\"http:\/\/www.assoc-amazon.com\/e\/ir?t=explthedataun-20&amp;l=as2&amp;o=1&amp;a=0961392142\" alt=\"\" width=\"1\" height=\"1\" border=\"0\" \/> is rightly a classic.? Its principles for evaluating the information density of figures will change how you think about graphical communication.? <a href=\"https:\/\/twitter.com\/flowingdata\">Nathan Yau<\/a>&#8216;s <a href=\"http:\/\/www.amazon.com\/gp\/product\/0470944889\/ref=as_li_ss_tl?ie=UTF8&amp;tag=explthedataun-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0470944889\">Visualize This<\/a><img loading=\"lazy\" decoding=\"async\" class=\"swbmecemefinlaytvgob zewkrqdkmivfkxaadwxp\" style=\"border: none !important; margin: 0px !important;\" src=\"http:\/\/www.assoc-amazon.com\/e\/ir?t=explthedataun-20&amp;l=as2&amp;o=1&amp;a=0470944889\" alt=\"\" width=\"1\" height=\"1\" border=\"0\" \/> (and his website, <a href=\"http:\/\/flowingdata.com\/\">FlowingData<\/a>) provide a look at today&#8217;s cutting edge of information graphics.<\/li>\n<li><strong>Learn about color perception.<\/strong>? Scientists love rainbow colormaps.? However, rainbow colormaps create <a href=\"http:\/\/www.jwave.vt.edu\/~rkriz\/Projects\/create_color_table\/color_07.pdf\">perceptual artifacts<\/a> that obscure the very trends you&#8217;re trying to display.? <a href=\"http:\/\/vis4.net\/blog\/posts\/avoid-equidistant-hsv-colors\/\">Perceptual colormaps<\/a> are a better alternative.? The <a href=\"http:\/\/colorbrewer2.com\/\">ColorBrewer<\/a> colormaps are the most well-known.? Python&#8217;s matplotlib has them <a href=\"https:\/\/gist.github.com\/2719900\">built-in<\/a> (try <code>help(plt.colormaps)<\/code>), and versions are <a href=\"http:\/\/www.idlcoyote.com\/color_tips\/brewer.html\">available<\/a> for IDL as well.<\/li>\n<li><strong>Use alpha transparency.<\/strong>? Most modern graphics packages support semi-transparent elements via an alpha keyword, typically specified between 0.0 (completely transparent) and 1.0 (completely opaque).? Making lines or scatterplot points semi-transparent can improve the clarity of the plot if there is <a href=\"http:\/\/matplotlib.org\/examples\/pylab_examples\/polar_scatter.html\">overlap<\/a> or variation in point density.<\/li>\n<li><strong>Learn about web visualization.<\/strong>? Static figures aren&#8217;t going anywhere&#8211;they&#8217;re easy to print, share, and display on slides.? However, both the true day-to-day practice of science and the needs of large datasets require an exploratory approach to visualization. ?Interactive analysis needs sophisticated software, however. ?The most nearly universal means to share interactive visualizations is via the browser, with its widely available JavaScript runtime.<br \/>\nToday, the <a href=\"http:\/\/d3js.org\/\">d3.js library<\/a> is the most popular JavaScript visualization library.? It is <a href=\"https:\/\/github.com\/mbostock\/d3\/wiki\/Gallery\">hugely capable<\/a>, though with its power comes complexity.? Check out an online <a href=\"http:\/\/alignedleft.com\/tutorials\/d3\/\">tutorial<\/a> or a <a href=\"http:\/\/www.amazon.com\/gp\/product\/1449339735\/ref=as_li_ss_tl?ie=UTF8&amp;tag=explthedataun-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=1449339735\">book<\/a><img loading=\"lazy\" decoding=\"async\" class=\"swbmecemefinlaytvgob zewkrqdkmivfkxaadwxp\" style=\"border: none !important; margin: 0px !important;\" src=\"http:\/\/www.assoc-amazon.com\/e\/ir?t=explthedataun-20&amp;l=as2&amp;o=1&amp;a=1449339735\" alt=\"\" width=\"1\" height=\"1\" border=\"0\" \/> to get started.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Scientific graphics are one of the most important means we have of communicating complicated quantitative information.? Here are a few ideas for improving the effectiveness of your figures: Learn a new feature of your graphics package.? Most of us only use a fraction of the capabilities of our graphics programs.? There&#8217;s much to be gained [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[14,4],"tags":[],"class_list":["post-601","post","type-post","status-publish","format-standard","hentry","category-science","category-visualization"],"_links":{"self":[{"href":"http:\/\/bellm.org\/blog\/wp-json\/wp\/v2\/posts\/601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bellm.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bellm.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bellm.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/bellm.org\/blog\/wp-json\/wp\/v2\/comments?post=601"}],"version-history":[{"count":19,"href":"http:\/\/bellm.org\/blog\/wp-json\/wp\/v2\/posts\/601\/revisions"}],"predecessor-version":[{"id":619,"href":"http:\/\/bellm.org\/blog\/wp-json\/wp\/v2\/posts\/601\/revisions\/619"}],"wp:attachment":[{"href":"http:\/\/bellm.org\/blog\/wp-json\/wp\/v2\/media?parent=601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bellm.org\/blog\/wp-json\/wp\/v2\/categories?post=601"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bellm.org\/blog\/wp-json\/wp\/v2\/tags?post=601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}