Enumeration Data Tipper

Version 1.0.0.0 (2.26 KB) by Reed
Provides an easy way to put enumerated data tip values on any line
252 Downloads
Updated 11 Feb 2014

View License

If you have one or more line traces on your plot that are enumerated values, it makes sense to have the enumerated name pop up in the data tip rather than the value. However, if you have non-enumerated curves, putting enumerated names on them is misleading and distracting. The small update function "EnumDataTip" automatically switches between showing the enumerated names and pure values as appropriate for nicely data-tipped mixed-curve plots.

Usage is really easy:
1) Set EnumDataTip as the update function for your figure
2) When plotting an enumerated curve, add the enumerated class as user data
3) Place/move data cursors normally!

ExampleScript.m provides a sample usage case for the EnumDataTip, and the enum_* files hold the classes used by ExampleScript.

Cite As

Reed (2024). Enumeration Data Tipper (https://www.mathworks.com/matlabcentral/fileexchange/45502-enumeration-data-tipper), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on File Operations in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0