File Exchange

image thumbnail

Overview Plot

version 1.0.0.1 (3.37 KB) by Daniel Sternberg
Creates a plot with an overview axes in the figure.

2 Downloads

Updated 01 Sep 2016

View Version History

View License

%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.

Cite As

Daniel Sternberg (2021). Overview Plot (https://www.mathworks.com/matlabcentral/fileexchange/17599-overview-plot), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Sayed Nour

file is not available for download !!

Tom Tom

very nice tool!

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.

b q

Craig Manadie

Great idea, great job! Thanks.

MATLAB Release Compatibility
Created with R2006b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!