{"id":2960,"date":"2010-11-12T18:40:58","date_gmt":"2010-11-12T17:40:58","guid":{"rendered":"http:\/\/www.walkingrandomly.com\/?p=2960"},"modified":"2010-11-12T18:40:58","modified_gmt":"2010-11-12T17:40:58","slug":"colorbarplot-version-0-6","status":"publish","type":"post","link":"https:\/\/walkingrandomly.com\/?p=2960","title":{"rendered":"Colorbarplot version 0.6"},"content":{"rendered":"<p>If you love your code&#8230;set it free!\u00a0 That&#8217;s what Will Robertson did when he released the first version of colorbarplot for Mathematica.\u00a0 I liked what he did but it didn&#8217;t do quite enough for my needs so I added some stuff to it and a new version was born.<\/p>\n<p>Our package starting getting users and some of those users asked for things so Will and I added yet more stuff and colorbarplot version 0.5 was born.<\/p>\n<p>Finally, one of those users, Thomas Zell of the University of Cologne, has added more functionality of his own resulting in version 0.6 of colorbarplot.\u00a0 So, what&#8217;s new?<\/p>\n<p>Well, if you have data in the form of a two-dimensional array, in which not every entry has valid numerical data, the following will now work without error:<\/p>\n<pre>set1 = Table[\r\n   If[Sqrt[x^2 + y^2] &lt; 1, Sqrt[1 - Sqrt[x^2 + y^2]]], {x, -1, 1,      0.125}, {y, -1, 1, 0.125}];\r\nColorbarPlot[set1, InterpolationOrder -&gt; 0,\r\n DataRange -&gt; {{-1, 1}, {-1, 1}}]<\/pre>\n<p style=\"text-align: left;\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.walkingrandomly.com\/images\/mathematica\/colorbar_0.6_ex1.png\" alt=\"colorbar plot 0.6 example 1\" \/><br \/>\nNext up, if you want to compare two data sets, the plots have to have the same scale even if the data sets have different sizes. This can now be achieved with the PlotRange option:<\/p>\n<pre>set2 = Table[\r\n  If[Sqrt[x^2 + y^2] &lt; 2, Sqrt[2 - Sqrt[x^2 + y^2]]], {x, -2, 2,    0.125}, {y, -2, 2, 0.125}]; \r\n\r\n{ColorbarPlot[set1, InterpolationOrder -&gt; 0,\r\n DataRange -&gt; {{-1, 1}, {-1, 1}},\r\n PlotRange -&gt; {{-2, 2}, {-2, 2}, {0, 1.5}}],\r\nColorbarPlot[set2, InterpolationOrder -&gt; 0,\r\n DataRange -&gt; {{-2, 2}, {-2, 2}},\r\n PlotRange -&gt; {{-2, 2}, {-2, 2}, {0, 1.5}}]}<\/pre>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.walkingrandomly.com\/images\/mathematica\/colorbar_0.6_ex2.png\" alt=\"colorbar plot 0.6 example 2\" \/><\/p>\n<p style=\"text-align: left;\">This is great stuff, helps make colorbarplot more useful and turns the package into a truly international collaboration ;)<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/wspr\/ColorbarPlot\">ColorbarPlot&#8217;s github page<\/a> The latest version will always be available here<\/li>\n<li><a href=\"http:\/\/library.wolfram.com\/infocenter\/MathSource\/7030\/\">ColorbarPlot&#8217;s page in the Wolfram Library<\/a> This is often out of date.<\/li>\n<li><a href=\"https:\/\/www.walkingrandomly.com\/images\/downloads\/ColorbarPlot06.zip\">ColorbarPlot 0.6<\/a> from the WalkingRandomly server<\/li>\n<li><a href=\"https:\/\/www.walkingrandomly.com\/?p=1782\">ColorbatPlot 0.5<\/a> My write up of a previous version<\/li>\n<li><a href=\"https:\/\/www.walkingrandomly.com\/?p=116\">ColorbarPlot 0.4<\/a> My write up of a previous version<\/li>\n<li><a href=\"https:\/\/www.walkingrandomly.com\/?p=24\">ColorbarPlot 0.3<\/a> My write up of a previous version<\/li>\n<\/ul>\n<h3 style=\"text-align: left;\">Have you published anything that uses colorbarplot?<\/h3>\n<p>If you have published anything that uses our little package then please do let us know.\u00a0 We know we have users so it would be great to see how you are using it.\u00a0 The more feedback we get, the more likely we are to want to develop it further.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you love your code&#8230;set it free!\u00a0 That&#8217;s what Will Robertson did when he released the first version of colorbarplot for Mathematica.\u00a0 I liked what he did but it didn&#8217;t do quite enough for my needs so I added some stuff to it and a new version was born. Our package starting getting users and [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,8,7],"tags":[],"class_list":["post-2960","post","type-post","status-publish","format-standard","hentry","category-math-software","category-mathematica","category-programming"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3swhs-LK","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/2960","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2960"}],"version-history":[{"count":10,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/2960\/revisions"}],"predecessor-version":[{"id":3009,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/2960\/revisions\/3009"}],"wp:attachment":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2960"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}