Code covered by the BSD License  

Highlights from
zoomfixticks

4.66667

4.7 | 3 ratings Rate this file 3 Downloads (last 30 days) File Size: 2.61 KB File ID: #2090
image thumbnail

zoomfixticks

by Greg Aloe

 

08 Aug 2002 (Updated 05 Jul 2009)

Allows zoom to honor a figure whose AXES tick labels have been manually set.

| Watch this File

File Information
Description

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Note: As of MATLAB® R2006b, the ZOOM, PAN, and ROTATE3D functions can return an object with properties that provide the functionality (and more) that this submission provides. See the documentation for details. I recommend using those supported MATLAB® features before considering this submission.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

By default, when you set ticklabels manually and zoom around the AXES, the ticklabels do not update automatically. They must be subsequently reset as desired. But with ZOOMFIXTICKS, this updating occurs automatically and seemlessly. The user of the function can create their own FIXTICKS function, which is called by ZOOMFIXTICKS. This is described in more detail in the help of the file in this submission.

This tool is especially useful when you want to override MATLAB's default format of the ticklabels.

Acknowledgements
This submission has inspired the following:
correct tick label
MATLAB release MATLAB 6.1 (R12.1)
Other requirements Verified to work in MATLAB® 5.3 (R11) through .
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
09 Sep 2005 Jen Cooper

Very nice if you want formatted tick labels and
zooming! Only downside is it takes a second to update after zooming if you have a large data set.

23 Jan 2006 E Brooks

Very useful, can't wait for panfixticks.

20 Apr 2006 Mike Russell

Good implementation. One bug I experience with 7.2.0.232 (R2006a) is that on button down function generates a warning
%%%
Warning: Setting the "WindowButtonDownFcn" property is not permitted while this mode is active.
%%%

15 Feb 2010 Riku Jarvinen

The same problem with 7.9.0.529 (R2009b). Works with an older version (6.x) perfectly.

>> Warning: Setting the "WindowButtonDownFcn" property is not permitted while this mode is active.
> In uitools.uimodemanager.uimodemanager>localModeWarn at 59
  In zoomfixticks>zoomOutCallback at 101
  In zoomfixticks at 47

Please login to add a comment or rating.
Updates
12 Aug 2002

Corrected a typo in the description.

02 Sep 2004

Undocumented HG tags changed in MATLAB R14.

05 Jul 2009

Update description to point to MATLAB® features that should be considered first.

Tag Activity for this File
Tag Applied By Date/Time
data exploration Greg Aloe 22 Oct 2008 06:47:02
zoom Greg Aloe 22 Oct 2008 06:47:02
fix Greg Aloe 22 Oct 2008 06:47:02
format Greg Aloe 22 Oct 2008 06:47:02
ticklabel Greg Aloe 22 Oct 2008 06:47:02
tick Greg Aloe 22 Oct 2008 06:47:02

Contact us at files@mathworks.com