{"id":116,"date":"2008-06-05T18:13:00","date_gmt":"2008-06-05T17:13:00","guid":{"rendered":"http:\/\/www.walkingrandomly.com\/?p=116"},"modified":"2009-10-21T14:51:48","modified_gmt":"2009-10-21T13:51:48","slug":"new-version-04-of-mathematica-colorbarplot-package-released","status":"publish","type":"post","link":"https:\/\/walkingrandomly.com\/?p=116","title":{"rendered":"New version (0.4) of Mathematica ColorbarPlot package released."},"content":{"rendered":"<p>Some time ago now I worked with <a href=\"http:\/\/willwont.blogspot.com\/\">Will Robertson<\/a> to produce a package that allowed Mathematica users to add MATLAB like colorbars to their graphs.  The package was called <a href=\"https:\/\/www.walkingrandomly.com\/?p=24\">ColorbarPlot<\/a> and <a href=\"http:\/\/library.wolfram.com\/infocenter\/MathSource\/7030\/\">version 0.3<\/a> was released on Wolfram&#8217;s Library Archive last October.  It was very well received and we were both pleased to find that people were actually finding it useful.  The feature requests started rolling in and Will and I started to hack in extra bits of functionality as they were requested.  Eventually, we had enough new features hacked in to demand a rewrite which Will duly did and the resulting version 0.4 of the ColorbarPlot package was sent out to a few users a little while ago.<\/p>\n<p>We refrained from actually announcing it though since we wanted this new version to replace the old one in the Wolfram Library.  Will sent them an email <strong>ages<\/strong> ago but has heard nothing and so we decided to just publish it ourselves.  So, without further ado, here is a link to a zip file containing the ColorbarPlot package itself along with an examples notebook.<\/p>\n<p><a href=\"\/images\/downloads\/ColorbarPlot0.4.zip\">ColorbarPlot version 0.4<\/a><\/p>\n<p>Think of this as a &#8216;snapshot&#8217; of the live package &#8211; it will never change and is hosted on my server.  If you have googled your way here and are wondering if there is a newer version then you should take a look at <a href=\"http:\/\/github.com\/wspr\/ColorbarPlot\">Will&#8217;s GitHub repository<\/a> where you will always be able to find the latest version of ColorbarPlot along with some other packages that he has authored.  Will&#8217;s own announcement of this upgrade can be found <a href=\"http:\/\/willwont.blogspot.com\/2008\/06\/mathematica-tidbits.html\">on his website<\/a>.<\/p>\n<p>So, what&#8217;s new in this version?  The most useful change is that you can now add colorbars to List based plots &#8211; useful for experimental data.  The following piece of Mathematica code creates a List of data and uses ColorbarPlot to plot it.<\/p>\n<p>data2d = Table[Sin[x y^2], {x, -2, 2, 0.1}, {y, -2, 2, 0.1}];<br \/>\nColorbarPlot[data2d, PlotType -&gt; &#8220;Contour&#8221;]<\/p>\n<p><img decoding=\"async\" src=\"\/images\/mathematica\/col04ex1.jpg\" alt=\"\" \/><br \/>\nOf course you are not limited to just 2D list based plots<\/p>\n<p>ColorbarPlot[data2d, PlotType -&gt; &#8220;3D&#8221;]<\/p>\n<p><img decoding=\"async\" src=\"\/images\/mathematica\/col04ex2.jpg\" alt=\"\" \/><\/p>\n<p>ColorbarPlot[data2d, PlotType -&gt; &#8220;Point3D&#8221;]<\/p>\n<p><img decoding=\"async\" src=\"\/images\/mathematica\/col04ex3.jpg\" alt=\"\" \/><\/p>\n<p>The full list of Plot types you can use with ColorbarPlot is<\/p>\n<ul>\n<li>(List)ContourPlot<\/li>\n<li>(List)DensityPlot<\/li>\n<li>(List)Plot3D<\/li>\n<li>ListPointPlot3D<\/li>\n<\/ul>\n<p>Other new features include the ability to manually choose the min\/max scale of the colorbar, the ability to fine tune the padding and height of the colorbar along with various clean ups and bug fixes.  All new (and old) features are documented and demonstrated in the accompanying examples notebook.  Thanks to Will for his hard work on this release (he did most of it &#8211; my contributions are rather small this time).<\/p>\n<p>Feedback and suggestions are, as always, very welcome.  If you publish any results using this package then please let me know &#8211; it would be great to see.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some time ago now I worked with Will Robertson to produce a package that allowed Mathematica users to add MATLAB like colorbars to their graphs. The package was called ColorbarPlot and version 0.3 was released on Wolfram&#8217;s Library Archive last October. It was very well received and we were both pleased to find that people [&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],"tags":[],"class_list":["post-116","post","type-post","status-publish","format-standard","hentry","category-math-software","category-mathematica"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3swhs-1S","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/116","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=116"}],"version-history":[{"count":2,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/116\/revisions"}],"predecessor-version":[{"id":1818,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/116\/revisions\/1818"}],"wp:attachment":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}