Cursor data

Cursor display multiple line data simultaneously in a figure

You are now following this Submission

Use this function to read multiple line data values with the same x coordinates. To use it properly, follow the following steps:
1. Plot the figure with mutiple lines;
2. Activate the Datatip in the figure toolbar;
3. In the blank area of the axes, click the right button of the mouse and choose the " Choose the text refreshing function" in the context menu, then choose MyCursorLineDataCallback.m as the refreshing function;
4. Click and drag the datatip, the data at the current x point will refresh simultaneously with the legend to distinguish each line data.

Cite As

Mr. Zhu (2026). Cursor data (https://www.mathworks.com/matlabcentral/fileexchange/65105-cursor-data), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0