{"id":2618,"date":"2010-11-19T13:58:48","date_gmt":"2010-11-19T13:58:48","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/2010\/11\/19\/interact-with-your-plots\/"},"modified":"2010-11-19T13:58:48","modified_gmt":"2010-11-19T13:58:48","slug":"interact-with-your-plots","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2010\/11\/19\/interact-with-your-plots\/","title":{"rendered":"Interact with Your Plots"},"content":{"rendered":"<div xmlns:mwsh=\"https:\/\/www.mathworks.com\/namespace\/mcode\/v1\/syntaxhighlight.dtd\" class=\"content\">\r\n   <p><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/15007\">Jiro<\/a>'s pick this week is <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/29276-dragzoom-drag-and-zoom-tool\"><tt>DRAGZOOM<\/tt><\/a> by <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/65956\">Evgeny Pr<\/a>.\r\n   <\/p>\r\n   <p>Last week, I wrote this <a href=\"https:\/\/blogs.mathworks.com\/pick\/2010\/11\/12\/moving-3d-objects-interactively\/\">post<\/a> about interacting with graphics objects using the mouse. These entries make me smile because I like how they push MATLAB's\r\n      envelope in terms of interactivity.\r\n   <\/p>\r\n   <p>Well, this one by Evgeny is truly amazing. I've seen many interactive exploration tools (I've created some myself), but this\r\n      is definitely one the best ones I've seen out there. It combines the standard interactive capabilities (zoom and pan) with\r\n      other tools useful for exploration (data cursor and magnifier). And they're all nicely integrated with easy to use affordances.\r\n      Here's a short video of it in action:\r\n   <\/p>\r\n   <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/jiro\/potw_dragzoom\/dragzoom_action.gif\"> <\/p>\r\n   <p>There's actually a lot more to <tt>dragzoom<\/tt>. Evgeny included a detailed help to the file and provided several example files, demonstrating capabilities in both 2D and\r\n      3D plots. I love it! Thanks, Evgeny!\r\n   <\/p>\r\n   <p><b>Comments<\/b><\/p>\r\n   <p>Let us know what you think <a href=\"https:\/\/blogs.mathworks.com\/pick\/?p=2618#respond\">here<\/a> or leave a <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/29276-dragzoom-drag-and-zoom-tool#comment\">comment<\/a> for Evgeny.\r\n   <\/p><script language=\"JavaScript\">\r\n<!--\r\n\r\n    function grabCode_f51f875ee4b349f6be96444ce0ef0105() {\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='f51f875ee4b349f6be96444ce0ef0105 ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' f51f875ee4b349f6be96444ce0ef0105';\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 = 'Jiro Doke';\r\n        copyright = 'Copyright 2010 The MathWorks, Inc.';\r\n\r\n        w = window.open();\r\n        d = w.document;\r\n        d.write('<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>\\n');\r\n      \r\n      d.title = title + ' (MATLAB code)';\r\n      d.close();\r\n      }   \r\n      \r\n-->\r\n<\/script><p style=\"text-align: right; font-size: xx-small; font-weight:lighter;   font-style: italic; color: gray\"><br><a href=\"javascript:grabCode_f51f875ee4b349f6be96444ce0ef0105()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n            the MATLAB code \r\n            <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; 7.11<br><\/p>\r\n<\/div>\r\n<!--\r\nf51f875ee4b349f6be96444ce0ef0105 ##### SOURCE BEGIN #####\r\n%%\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/15007\r\n% Jiro>'s pick this week is\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/29276-dragzoom-drag-and-zoom-tool\r\n% |DRAGZOOM|> by\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/65956 Evgeny\r\n% Pr>.\r\n%\r\n% Last week, I wrote this\r\n% <https:\/\/blogs.mathworks.com\/pick\/2010\/11\/12\/moving-3d-objects-interactively\/\r\n% post> about interacting with graphics objects using the mouse. These\r\n% entries make me smile because I like how they push MATLAB's envelope in\r\n% terms of interactivity.\r\n%\r\n% Well, this one by Evgeny is truly amazing. I've seen many interactive\r\n% exploration tools (I've created some myself), but this is definitely one\r\n% the best ones I've seen out there. It combines the standard interactive\r\n% capabilities (zoom and pan) with other tools useful for exploration (data\r\n% cursor and magnifier). And they're all nicely integrated with easy to use\r\n% affordances. Here's a short video of it in action:\r\n%\r\n% <<dragzoom_action.gif>>\r\n%\r\n% There's actually a lot more to |dragzoom|. Evgeny included a detailed\r\n% help to the file and provided several example files, demonstrating\r\n% capabilities in both 2D and 3D plots. I love it! Thanks, Evgeny!\r\n%\r\n% *Comments*\r\n%\r\n% Let us know what you think\r\n% <https:\/\/blogs.mathworks.com\/pick\/?p=2618#respond here> or leave a\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/29276-dragzoom-drag-and-zoom-tool#comment\r\n% comment> for Evgeny.\r\n\r\n##### SOURCE END ##### f51f875ee4b349f6be96444ce0ef0105\r\n-->","protected":false},"excerpt":{"rendered":"<p>\r\n   Jiro's pick this week is DRAGZOOM by Evgeny Pr.\r\n   \r\n   Last week, I wrote this post about interacting with graphics objects using the mouse. These entries make me smile because I like how they... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2010\/11\/19\/interact-with-your-plots\/\">read more >><\/a><\/p>","protected":false},"author":35,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,16],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2618"}],"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\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=2618"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2618\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=2618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=2618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=2618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}