linkdatatips
by Iram Weinstein
16 Apr 2010
(Updated 18 May 2010)
Creates and maintains linked datatips in all plots as the user moves around the first plot
|
Watch this File
|
| File Information |
| Description |
I often find myself trying to compare the results of different functions z=f(x,y), using datatips in the plots. This function provides a way of exploring results in one plot while observing values in the other plots as well. Linkdtatips works with plots formed by image, imagesc, mesh,meshc, pcolor, surf and surfc.
Added feature. To shift the primary datatip focus to the kth plot, call again as linkdatatips(hg(k))
Linkdatatips is compatible with linkaxes.
EXAMPLE:
z = peaks(50);
figure
h(1) = imagesc(z);
figure
subplot 121
h(2) = surf(z.^2);
subplot 122
h(3)=mesh(z+3);
linkdatatips(h);
|
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
MAKEDATATIP
|
| MATLAB release |
MATLAB 7.9 (2009b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 20 Apr 2010 |
Added tags |
| 18 May 2010 |
Added feature. To shift the primary datatip focus to the kth plot, call again as linkdatatips(hg(k))
Also, default behavior of the datatip is now SnapToDataVertex. |
|
Contact us at files@mathworks.com