{"id":1325,"date":"2012-09-28T12:53:57","date_gmt":"2012-09-28T17:53:57","guid":{"rendered":"https:\/\/blogs.mathworks.com\/seth\/?p=1325"},"modified":"2017-08-28T20:35:17","modified_gmt":"2017-08-29T01:35:17","slug":"zooming-and-panning-in-simulink-r2012b","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/simulink\/2012\/09\/28\/zooming-and-panning-in-simulink-r2012b\/","title":{"rendered":"Zooming and Panning in Simulink R2012b"},"content":{"rendered":"<p>As <a href=\"https:\/\/blogs.mathworks.com\/seth\/2012\/09\/12\/welcome-simulink-r2012b\/\">we highlighted recently<\/a>, Simulink R2012b has a ton of new features. During the next weeks, we will try to provide as much details as possible on all this new cool stuff.<\/p>\r\n\r\n<p>For this week, I will start with the basic of navigating models.<\/p>\r\n\r\n<p><strong>Zooming<\/strong><\/p>\r\n\r\n<p>In R2012b, zooming is a lot more dynamic with the mouse wheel. Here is a short animation where I highlight all the possible ways to zoom in R2012b:<\/p>\r\n \r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2012Q3\/allZoomm.gif\" alt=\"zooming in R2012b\" \/><\/p>\r\n\r\n<p>In case you have problems getting used to scroll wheel zooming, you can go to the Simulink preference and uncheck the <strong>Scroll wheel controls zooming<\/strong> option:<\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2012Q3\/simulink_preference.png\" alt=\"zooming in R2012b\" \/><\/p>\r\n\r\n\r\n<p><strong>Panning<\/strong><\/p>\r\n\r\n<p>Before R2012b, panning could be done using <strong>P<\/strong> or <strong>Q<\/strong> in combination with the left mouse button. The result was equivalent to moving the scrollbars at the top and bottom of your model. I am not sure why, but I almost never used this feature.<\/p>\r\n\r\n<p>In R2012b, the panning is easier to access, with the <strong>middle mouse button<\/strong> or a combination of the <strong>spacebar and left mouse button<\/strong>.<\/p>\r\n\r\n<p>The panning is also more powerful. It allows you to increase the dimensions of the model in any direction:<\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2012Q3\/PanMove.gif\" alt=\"Panning in R2012b\" \/><\/p>\r\n\r\n\r\n<p><strong>My personal experience<\/strong><\/p>\r\n\r\n<p>I need to be honest with you... getting used to Simulink R2012b was a good challenge for me.<\/p>\r\n\r\n<p>Before R2012b, the 4 most used keys on my keyboard were <strong>R<\/strong>, <strong>F<\/strong>, <strong>V<\/strong> and <strong>1<\/strong>. Every time I opened a new model I was using those to zoom in, zoom out or zoom 100%.<\/p>\r\n\r\n<p>I tried the new panning and zooming for a few weeks. After some frustration because I ended up zooming instead of scrolling, I tried disabling the scrolling zoom. That quickly made me realize that using the scroll wheel to zoom is very useful and after just a few hours I re-enabled the option.<\/p>\r\n\r\n<p>About the panning, it forced me to develop new muscles. Since I was never using the middle button of my mouse, that gesture initially felt weird, like if it was requiring a lot of efforts in my finger to push that middle button.<\/p>\r\n\r\n<p>After a few months using Simulink R2012b, I now try to use the middle mouse button to pan everywhere and end up saying to myself: <em>Why is that software not panning with the middle button?<\/em><\/p>\r\n\r\n<p>Now that I have been using Simulink R2012b for a few months, I absolutely love it. Everything is more easy.<\/p>\r\n\r\n<p>The other day I had to test something in R2012a and when I opened the model I asked myself: <em>How was I satisfied with this old interface?<\/em><\/p>\r\n\r\n<p><strong>Now it's your turn<\/strong><\/p>\r\n\r\n<p>Refer to the Zoom and Pan Block Diagrams page for more details, and let us know what you think of Simulink R2012b by leaving a <a href=\"https:\/\/blogs.mathworks.com\/seth\/?p=1325&#comment\">comment here<\/a>.<\/p>\r\n\r\n\r\n","protected":false},"excerpt":{"rendered":"<p>As we highlighted recently, Simulink R2012b has a ton of new features. During the next weeks, we will try to provide as much details as possible on all this new cool stuff.\r\n\r\nFor this week, I will... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/simulink\/2012\/09\/28\/zooming-and-panning-in-simulink-r2012b\/\">read more >><\/a><\/p>","protected":false},"author":41,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[287,288],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/1325"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/comments?post=1325"}],"version-history":[{"count":38,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/1325\/revisions"}],"predecessor-version":[{"id":6724,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/1325\/revisions\/6724"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/media?parent=1325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/categories?post=1325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/tags?post=1325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}