Version (41.9 KB) by Marjorie
Cursorbar creates a cursor line attached to an axes or lines.
Updated 2 Jun 2017

View License

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 ( for his assistance in updating cursorbar for MATLAB Graphics and for his contribution of new functionality.

Cite As

Marjorie (2024). Cursorbar (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Interactive Control and Callbacks 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

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

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.

Updated license

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

Fixed set Location
Added logarithmic scale support
Added a custom display

Added a picture