{"id":1083,"date":"2005-09-28T09:28:48","date_gmt":"2005-09-28T14:28:48","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/?p=1083"},"modified":"2016-11-16T15:19:08","modified_gmt":"2016-11-16T20:19:08","slug":"handle-graphics-filtering","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2005\/09\/28\/handle-graphics-filtering\/","title":{"rendered":"Handle Graphics Filtering"},"content":{"rendered":"<p><div class=\"alert alert-info\"> <span class=\"alert_icon icon-alert-info-reverse\"><\/span><p class=\"alert_heading\"><strong>Note<\/strong><\/p><p>The file submission referenced in this post is no longer available on File Exchange.<\/p><\/div><br \/>\nDuane Hanselman looks too young in his MATLAB Central picture to be an accomplished author, but he is. This week&#8217;s pick is great for understanding handle graphics better in MATLAB. For those who have not yet discovered handle graphics, the short of it is that every graphical entity in MATLAB from lines, axes, to figures, has a handle that identifies it in a unique manner. Once you have the handle of an object, you can manipulate it to customize your plots. There are lots of properties that an object can have, and not all of them can be modified. GETSET lets you filter out read only properties, making it easier to see those things you can change.<\/p>\n<p>Here is the simplest possible use of handle graphics. Try this line by line to see what happens.<\/p>\n<pre class=\"code\">&gt;&gt; h = plot(rand(1,10)) % Your handle number will likely be different\r\nh =\r\n  151.0028\r\n&gt;&gt; set(h, 'color', 'g')\r\n&gt;&gt; get(h)\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p> NoteThe file submission referenced in this post is no longer available on File Exchange.<br \/>\nDuane Hanselman looks too young in his MATLAB Central picture to be an accomplished author, but he is. This&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2005\/09\/28\/handle-graphics-filtering\/\">read more >><\/a><\/p>\n","protected":false},"author":68,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/1083"}],"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\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=1083"}],"version-history":[{"count":3,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/1083\/revisions"}],"predecessor-version":[{"id":8053,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/1083\/revisions\/8053"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=1083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=1083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=1083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}