Cursorbar

Cursorbar creates a cursor line attached to an axes or lines.

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

The Cursorbar can be dragged interactively across the axes. If attached to a plot, the cursor points are updated as well. The Cursorbar can be either horizontal or vertical.
Thanks to Yaroslav Don (http://www.mathworks.com/matlabcentral/profile/authors/3354683-yaroslav) for his assistance in updating cursorbar for MATLAB Graphics and for his contribution of new functionality.

Cite As

Marjorie (2026). Cursorbar (https://ch.mathworks.com/matlabcentral/fileexchange/49612-cursorbar), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Interactive Control and Callbacks in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Fixed a bug that prevented cursorbar motion when x-values are negative and the x-axis scaling is logarithmic.

2.0.0.2

Fixed inheritance issues of incorrect Command Window display.
Fixed clashing with axes zooming.
Changed DataCursorDummyTargetHandle.
Fixed target axes bug.
Added a documentation example for marker styles.

2.0.0.1

Updated license

2.0.0.0

Updates include a new interface, and save and load capability.
Updates include a new interface, and save and load capability.

1.2.0.0

Fixed set Location
Added logarithmic scale support
Added a custom display

1.1.0.0

Added a picture

1.0.0.0