Code covered by the BSD License  

Highlights from
Peekplot

4.5

4.5 | 4 ratings Rate this file 4 Downloads (last 30 days) File Size: 2.82 KB File ID: #4227
image thumbnail

Peekplot

by Brandon Kuczenski

 

07 Dec 2003 (Updated 10 Dec 2003)

Mouse click to view data points on plot.

| Watch this File

File Information
Description

Enable this program (by handle) on an axes or a line object to activate graphical inspection of the data points in the plot or line object. When enabled, left-click and hold on a datapoint on the plot, and its x and y coordinates are displayed. (peekplot currently only works for 2-d plots). When the mouse button is released, the text will vanish. Click-and-drag to move the text to a more visible area if necessary, with a dashed-line trail to the original point. Peekplot cleans up after itself when terminated.

Peekplot works seamlessly with moveplot.m, but users must be sure to terminate the functions in the reverse order they are invoked (like a stack), e.g.:
m=plot(x,sin(x));
moveplot(m)
peekplot(m)
%perform inspection and alteration
peekplot(m,'off')
moveplot(m,'off')

If moveplot is terminated before peekplot, both will be terminated at once.

Peekplot works with addplot, but not necessarily seamlessly. Addplot may be fixed in a later revision.

Acknowledgements
This submission has inspired the following:
TAGS
MATLAB release MATLAB 6.0 (R12)
Other requirements Tested only on Win 2K.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
16 Dec 2003 wenyong Li

it's useful

08 Jan 2004 Bin Wang

Very useful! if works with plotyy function, it will be perfect.

26 Oct 2004 Gonzalo Medina-Sanchez  
04 Nov 2005 hyunsuk choi

Very useful~~!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
annotation Brandon Kuczenski 22 Oct 2008 07:10:26
customization Brandon Kuczenski 22 Oct 2008 07:10:26
plot Brandon Kuczenski 22 Oct 2008 07:10:26
graphical inspection Brandon Kuczenski 22 Oct 2008 07:10:26
mouse Brandon Kuczenski 22 Oct 2008 07:10:26
click Brandon Kuczenski 22 Oct 2008 07:10:26

Contact us at files@mathworks.com