|
|
| File Information |
| Description |
% MAKELINEHIGHLIGHTABLE sets the ButtonDownFcn of lines or line children
% of axes so that when the line is clicked the line width is increased or
% decreased. when the line is clicked again the line width returns to the
% original value.
%
% MAKELINEHIGHLIGHTABLE(H,HIGHLIGHTPOINTS): H is a line or axes handle or a vector of line and/or axes handles
% HIGHLIGHTPOINTS(optional) is the number of points to
% increase (or decrease) the line width when the line is clicked. If not
% supplied the default value is 2.
%
% MAKELINEHIGHLIGHTABLE(H,0): turns off the highlightable ButtonDownFcn for the line handles in H.
% Examples:
% h = plot(1:10,rand(10));
% makeLineHighlightable(h) %increase line width by 2 when clicked
% a = get(h(1),'Parent');
% makeLineHighlightable(a,5); %increase by 5 all lines in the axes
% makeLineHighlightable(h(1:5),0); %turn off the first 5 lines highlighting
% makeLineHighlightable(a,0); %turn off all the lines highlighting |
| MATLAB release |
MATLAB 7.3 (R2006b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (5) |
| 13 Nov 2007 |
Matthew Whitaker
|
|
|
| 13 Nov 2007 |
Doug Hull
|
|
|
| 14 Nov 2007 |
V P
|
|
|
| 21 Nov 2007 |
saeed iqbal
|
|
|
| 16 Jan 2008 |
Aurélien QUEFFURUSt
|
|
|
| Updates |
| 13 Nov 2007 |
Revisions: 11/13/07- Other lines turn off when line is highlighted |
| 13 Nov 2007 |
Make other lines turn off when clicking |
|
Contact us at files@mathworks.com