You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
MAKEDATATIP allows programmatically adding datatips to some graphical objects.
Updated to allow adding datatips to additional handle objects including scatter plots and images. If there are other object types you want supported that do not currently work, please let me know.
Example:
x = 1:10;
y = rand(1,10);
hPlot = plot(x,y);
makedatatip(hPlot,[3 8])
Example:
[X,Y,Z] = peaks(30);
hObj = surf(X,Y,Z);
I = [5 8; 20 12; 22 28];
hDatatip = makedatatip(hObj, I);
Cite As
Tim Farajian (2026). MAKEDATATIP (https://www.mathworks.com/matlabcentral/fileexchange/19877-makedatatip), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Programmatically Datatip Generation with Matlab Implementation, linkdatatips
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and MATLAB Answers
General Information
- Version 1.1.0.0 (2.52 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
