{"id":2552,"date":"2010-04-23T11:04:08","date_gmt":"2010-04-23T11:04:08","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/2010\/04\/23\/panel\/"},"modified":"2017-01-06T21:28:37","modified_gmt":"2017-01-07T02:28:37","slug":"panel","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2010\/04\/23\/panel\/","title":{"rendered":"Panel"},"content":{"rendered":"<div class=\"content\">\r\n\r\n<a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/5021\">Bob<\/a>'s pick this week is <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/20003-panel\">Panel<\/a> by <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/2765\">Ben Mitch<\/a>.\r\n\r\n&nbsp;\r\n\r\nOne of my favorite MATLAB functions for visualizing data is <tt><a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2010a\/techdoc\/ref\/subplot.html\">subplot<\/a><\/tt>. <tt>subplot<\/tt> is powerful but <tt>panel<\/tt> helps you make fancier plots.\r\n\r\nBen's HTML documentation clearly shows creativity. He included 7 (count 'em) examples so if you are interested in options, be sure to browser them\r\nall.\r\n\r\nI was also intrigued by his object oriented approach. It's nice that old style code still runs in MATLAB. It would be fun\r\nto see an implementation using the new <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2010a\/techdoc\/matlab_oop\/ug_intropage.html\">class system<\/a> if anyone might be interested in the exercise or challenge. :)\r\n\r\n<a href=\"https:\/\/blogs.mathworks.com\/pick\/?p=2552#respond\">Comments?<\/a>\r\n\r\n<script language=\"JavaScript\">\/\/ <![CDATA[\r\n\r\n\r\n    function grabCode_2149d4658b1c4c49b418ced8ceb82a7e() {\r\n        \/\/ Remember the title so we can use it in the new page\r\n        title = document.title;\r\n\r\n        \/\/ Break up these strings so that their presence\r\n        \/\/ in the Javascript doesn't mess up the search for\r\n        \/\/ the MATLAB code.\r\n        t1='2149d4658b1c4c49b418ced8ceb82a7e ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' 2149d4658b1c4c49b418ced8ceb82a7e';\r\n\r\n        b=document.getElementsByTagName('body')[0];\r\n        i1=b.innerHTML.indexOf(t1)+t1.length;\r\n        i2=b.innerHTML.indexOf(t2);\r\n\r\n        code_string = b.innerHTML.substring(i1, i2);\r\n        code_string = code_string.replace(\/REPLACE_WITH_DASH_DASH\/g,'--');\r\n\r\n        \/\/ Use \/x3C\/g instead of the less-than character to avoid errors \r\n        \/\/ in the XML parser.\r\n        \/\/ Use '\\x26#60;' instead of '<' so that the XML parser\r\n        \/\/ doesn't go ahead and substitute the less-than character. \r\n        code_string = code_string.replace(\/\\x3C\/g, '\\x26#60;');\r\n\r\n        author = 'Robert Bemis';\r\n        copyright = 'Copyright 2010 The MathWorks, Inc.';\r\n\r\n        w = window.open();\r\n        d = w.document;\r\n        d.write('\r\n\r\n<pre>\\n');\r\n        d.write(code_string);\r\n\r\n        \/\/ Add author and copyright lines at the bottom if specified.\r\n        if ((author.length > 0) || (copyright.length > 0)) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (author.length > 0) {\r\n                d.writeln('% _' + author + '_');\r\n            }\r\n            if (copyright.length > 0) {\r\n                d.writeln('% _' + copyright + '_');\r\n            }\r\n        }\r\n\r\n        d.write('<\/pre>\r\n\r\n\r\n\\n');\r\n\r\n      d.title = title + ' (MATLAB code)';\r\n      d.close();\r\n      }   \r\n\r\n\/\/ ]]><\/script>\r\n<p style=\"text-align: right; font-size: xx-small; font-weight: lighter; font-style: italic; color: gray;\"><a><span style=\"font-size: x-small; font-style: italic;\">Get\r\nthe MATLAB code\r\n<noscript>(requires JavaScript)<\/noscript><\/span><\/a><\/p>\r\nPublished with MATLAB\u00ae 7.10\r\n\r\n<\/div>\r\n<!--\r\n2149d4658b1c4c49b418ced8ceb82a7e ##### SOURCE BEGIN #####\r\n%%\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/5021 Bob>'s\r\n% pick this week is\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/20003-panel Panel>\r\n% by\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/2765 Ben Mitch>.\r\n%%\r\n% One of my favorite MATLAB functions for visualizing data is\r\n% |<https:\/\/www.mathworks.com\/help\/releases\/R2010a\/techdoc\/ref\/subplot.html subplot>|.\r\n% |subplot| is powerful but |panel| helps you make fancier plots.\r\n%%\r\n% <<https:\/\/www.mathworks.com\/matlabcentral\/fx_files\/20003\/1\/example.png>>\r\n%%\r\n% Ben's\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fx_files\/20003\/1\/content\/panel.html HTML documentation>\r\n% clearly shows creativity. He included 7 (count 'em) examples so if you\r\n% are interested in options, be sure to browser them all.\r\n%\r\n% I was also intrigued by his object oriented approach. It's nice that old\r\n% style code still runs in MATLAB. It would be fun to see an implementation\r\n% using the new\r\n% <https:\/\/www.mathworks.com\/help\/releases\/R2010a\/techdoc\/matlab_oop\/ug_intropage.html class system>\r\n% if anyone might is interested in the exercise or challenge. :)\r\n%%\r\n% <https:\/\/blogs.mathworks.com\/pick\/?p=2552#respond Comments?>\r\n\r\n##### SOURCE END ##### 2149d4658b1c4c49b418ced8ceb82a7e\r\n-->","protected":false},"excerpt":{"rendered":"<p>\r\n\r\nBob's pick this week is Panel by Ben Mitch.\r\n\r\n&nbsp;\r\n\r\nOne of my favorite MATLAB functions for visualizing data is subplot. subplot is powerful but panel helps you make fancier plots.\r\n\r\nBen's... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2010\/04\/23\/panel\/\">read more >><\/a><\/p>","protected":false},"author":46,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2552"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/46"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=2552"}],"version-history":[{"count":5,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2552\/revisions"}],"predecessor-version":[{"id":8335,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2552\/revisions\/8335"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=2552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=2552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=2552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}