Draggable data tips

버전 1.1.0.1 (4.78 KB) 작성자: Yair Altman
Enable dragging Matlab plot data-tips
다운로드 수: 1.2K
업데이트 2019/3/14

라이선스 보기

Matlab plots can display data-tips but these cannot be interactively moved except to the 4 corners of the data point.

This utility enables the user to interactively drag any newly-created data-tip, anywhere in the Matlab figure. A dashed line connects the dragged data-tip with the original data point.

The new draggable functionality only affects new data-tips, so it can be turned on/off to enable standard and new data-tips to co-exist in the same plot (see screenshot).

Syntax: draggableDataTips(newState)

Examples:
draggableDataTips('on') or draggableDataTips(true) turns the new functionality ON for new data-tips.
draggableDataTips('off') or draggableDataTips(false) turns the new functionality OFF for new data tips.

Warning:
Relies on undocumented functionality.
This utility fails in HG2 (R2014b+) - please don't bug me about it, unless you found a solution...
On HG2 (R2014b+), use Allen's submission: https://www.mathworks.com/matlabcentral/fileexchange/69799-dragdatatip

Technical description:
http://UndocumentedMatlab.com/blog/draggable-plot-data-tips

인용 양식

Yair Altman (2026). Draggable data tips (https://kr.mathworks.com/matlabcentral/fileexchange/44065-draggable-data-tips), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2010b
R2014a 이하 모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
도움

도움 준 파일: DragDataTip

버전 게시됨 릴리스 정보
1.1.0.1

No code change; only clarified in the Description section that this utility fails on R2014b or newer. Users of recent Matlab releases should use Allen's submission instead (see comment on 3 Jan 2019).

1.1.0.0

Fixed the bug reported by Aditya on Nov 3, 2013

1.0.0.0