Comments on: Focused on Zooming https://blogs.mathworks.com/community/2007/12/10/focused-on-zooming/?s_tid=feedtopost News from the intersection of MATLAB, Community, and the web. Mon, 04 Apr 2016 13:15:49 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: Emmanouela Filippidi https://blogs.mathworks.com/community/2007/12/10/focused-on-zooming/#comment-10532 Mon, 01 Oct 2012 20:10:02 +0000 https://blogs.mathworks.com/desktop/2007/12/10/focused-on-zooming/#comment-10532 I have a 2d image and I’d like to have available the entire image to show with imshow, but initially start from the zoomed view at the selected region for all of them. For example, zoom in and show only image(100:400, 100:400) of an image that is 1024*1024.
How can I specify that in the command line ?
Thank you.

]]>
By: Michael Katz https://blogs.mathworks.com/community/2007/12/10/focused-on-zooming/#comment-8633 Mon, 12 Mar 2012 17:37:01 +0000 https://blogs.mathworks.com/desktop/2007/12/10/focused-on-zooming/#comment-8633 Keith,

I don’t have any updates to share at this time, but I’ll nudge the developers.

]]>
By: Keith https://blogs.mathworks.com/community/2007/12/10/focused-on-zooming/#comment-8603 Tue, 06 Mar 2012 23:10:40 +0000 https://blogs.mathworks.com/desktop/2007/12/10/focused-on-zooming/#comment-8603 Like Adee, I search through large amounts of data using sets of Matlab subplots with linked axes. I frequently switch between horizontal zoom, vertical zoom, and unconstrained zoom. It gets very slow and tedious to constantly be right clicking to change the Zoom Options. I would very very much like to hold down a key (whether it be Ctrl, Alt, or even alphanumeric) which would set the type of zoom to be performed. This would greatly improve my efficiency.

I see that you said in April 2010 that you had submitted a feature request to allow something like this. Has there been any progress?

Thanks!
Keith

]]>
By: Subha https://blogs.mathworks.com/community/2007/12/10/focused-on-zooming/#comment-8448 Fri, 03 Feb 2012 10:11:05 +0000 https://blogs.mathworks.com/desktop/2007/12/10/focused-on-zooming/#comment-8448 Sir, I am creating GUI in which I plot my streaming data. So that the figure is updated everytime. I want to add zoom option in that. What should I do?

]]>
By: Richard https://blogs.mathworks.com/community/2007/12/10/focused-on-zooming/#comment-8226 Sat, 12 Nov 2011 10:57:05 +0000 https://blogs.mathworks.com/desktop/2007/12/10/focused-on-zooming/#comment-8226 @Yair, jiro, Mike. Thanks, this is all very useful info. The main reason I want to know is because I’m developing a code to automatically produce ‘tight’ figures without excess space around them for publication. I also want this code to work for subplots by getting the minimum required bounding box (based on the ‘TightInset’ and ‘Position’ properties of every axes in the figure. My problem is, if a 3D plot has been zoomed, these properties are no longer useful, and the figure should be ignored, or left as it is. 2D plots that have been zoomed are fine, as the axes stay where they are in the figure, but the whole view of the figure changes if any 3D axes have been zoomed. I have found a way to determine if an axes is 3D, using the view function. Perhaps using your tips I can get the last part.

]]>
By: Yair Altman https://blogs.mathworks.com/community/2007/12/10/focused-on-zooming/#comment-8213 Thu, 10 Nov 2011 18:50:12 +0000 https://blogs.mathworks.com/desktop/2007/12/10/focused-on-zooming/#comment-8213 @Richard – the original axes limits are stored in an internal object that you can compare to the axes limits in run-time as Mike suggested. It also apparently solves the zoom reset issue that Jiro has raised. See here: http://UndocumentedMatlab.com/blog/determining-axes-zoom-state/

Note: relies on unsupported functionality that may change between Matlab releases.

]]>
By: jiro https://blogs.mathworks.com/community/2007/12/10/focused-on-zooming/#comment-8206 Wed, 09 Nov 2011 20:06:38 +0000 https://blogs.mathworks.com/desktop/2007/12/10/focused-on-zooming/#comment-8206 @Richard,

Even though this won’t let you determine whether it was zoomed or not, but

zoom out

would allow you to reset to the initial zoom setting. But note that the initial setting can be changed by

zoom reset
]]>
By: Mike https://blogs.mathworks.com/community/2007/12/10/focused-on-zooming/#comment-8205 Wed, 09 Nov 2011 16:53:51 +0000 https://blogs.mathworks.com/desktop/2007/12/10/focused-on-zooming/#comment-8205 @Richard,
Not by itself. You can always compare x,y, and z-limits to a known value and see if they have changed from the original

]]>
By: Richard https://blogs.mathworks.com/community/2007/12/10/focused-on-zooming/#comment-8204 Wed, 09 Nov 2011 16:33:53 +0000 https://blogs.mathworks.com/desktop/2007/12/10/focused-on-zooming/#comment-8204 Is there a way to determine if a particular axes has been zoomed?

]]>
By: Mike https://blogs.mathworks.com/community/2007/12/10/focused-on-zooming/#comment-6955 Thu, 01 Apr 2010 20:37:21 +0000 https://blogs.mathworks.com/desktop/2007/12/10/focused-on-zooming/#comment-6955 @Adee,
Unfortunately there is no way to do it. I’ve put in a feature request for it.

]]>