4.25

4.2 | 4 ratings Rate this file 25 downloads (last 30 days) File Size: 3.37 KB File ID: #17599

Overview Plot

by Daniel Sternberg

 

19 Nov 2007 (Updated 20 Nov 2007)

Code covered by BSD License  

Creates a plot with an overview axes in the figure.

Download Now | Watch this File

File Information
Description

%OVERVIEWPLOT creates a plot with an interactive overview axes.
% OVERVIEWPLOT(...) takes the same input arguments as the PLOT command
% and will create a new figure containing the plot and an inset
% displaying an overview of the plot. Pan and zoom operations on the main
% axes will result in a rectangle being drawn in the inset axes
% representing the section of the data currently shown in the main axes.
% Manipulating the rectangle has the same effect as panning the main
% axes.
% OVERVIEWPLOT(FIG,...) will put the main axes and inset axes into the
% figure represented by the handle FIG. Any callbacks active in the
% figure will be overwritten as will any data present in the figure.

MATLAB release MATLAB 7.3 (R2006b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
20 Nov 2007 Craig Manadie

Great idea, great job! Thanks.

20 Nov 2007 b q  
24 Nov 2007 John D'Errico

This is a very nice idea. The help is good and readable.

It could be improved however. Suppose after you generate a plot, then after the fact want to use this tool? You can't do so, instead you must recreate your plot using this tool. A better approach would be to allow this to work:

h = plot(rand(10));
overviewPlot

Also, these variants should work too:

h = plot(rand(10));
overviewPlot(h)

plot(rand(10))
overviewPlot(gcf)

Finally, I note that rotate is disabled once you do the overviewPlot.

26 Nov 2007 Tom Tom

very nice tool!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
data exploration Daniel Sternberg 22 Oct 2008 09:36:00
box Daniel Sternberg 22 Oct 2008 09:36:00
subplot Daniel Sternberg 22 Oct 2008 09:36:00
axes Daniel Sternberg 22 Oct 2008 09:36:00
zoom Daniel Sternberg 22 Oct 2008 09:36:00
pan Daniel Sternberg 22 Oct 2008 09:36:00
graphics Daniel Sternberg 22 Oct 2008 09:36:00
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com