Skip to content

Commit 0fd2832

Browse files
committed
don't abbreviate property names
This makes a Octave:abbreviated-property-match on Octave. It works fine on either system but it seems we should use the real name, not the abbreviation.
1 parent 47f4202 commit 0fd2832

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

@chebfun/plot.m

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@
7070
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7171
% DEVELOPER NOTE:
7272
% We actually plot a fifth 'dummy' plot which contains both the line and marker
73-
% styles. This is the only plot which has 'handlevis', 'on', and so will be
74-
% included in subsequent calls to LEGEND(). The handle to this plot is included
75-
% as the fifth output, and the plot itself is set to 'visible', 'off'. Note
76-
% that if a user modifies the plot by adjusting HLINE or HPOINT, subsequent
77-
% calls the LEGEND will not have the updated style. There's no way to get
78-
% around this without a complicated callback procedure.
73+
% styles. This is the only plot which has 'handlevisibility', 'on', and so will
74+
% be included in subsequent calls to LEGEND(). The handle to this plot is
75+
% included as the fifth output, and the plot itself is set to 'visible', 'off'.
76+
% Note that if a user modifies the plot by adjusting HLINE or HPOINT,
77+
% subsequent calls the LEGEND will not have the updated style. There's no way
78+
% to get around this without a complicated callback procedure.
7979
%
8080
% Note, to clarify, the reason we need all this is that we must plot the line
8181
% and points as different plots. MATLAB/PLOT() doesn't have this problem.
@@ -422,17 +422,17 @@
422422
end
423423

424424
% We don't want these guys to be included in LEGEND(), so we turn them off.
425-
set(h1, 'handlevis', 'off');
426-
set(h2, 'handlevis', 'off');
427-
set(h3, 'handlevis', 'off');
428-
set(h4, 'handlevis', 'off');
425+
set(h1, 'handlevisibility', 'off');
426+
set(h2, 'handlevisibility', 'off');
427+
set(h3, 'handlevisibility', 'off');
428+
set(h4, 'handlevisibility', 'off');
429429

430430
% Ensure that the both the handle for the dummy plot and the dummy plot itself
431431
% are visible for LEGEND(). The dummy plot could in theory have its 'Visible'
432432
% property set to 'off', but the data is NaN, so it doesn't draw anything
433433
% anyway. Moreover, if 'Visible' is 'off', the entries in the legend will be
434434
% grayed out in R2016b and later.
435-
set(hDummy, 'handlevis', 'on', 'visible', 'on'); % ¯\_(o.O)_/¯
435+
set(hDummy, 'handlevisibility', 'on', 'visible', 'on'); % ¯\_(o.O)_/¯
436436

437437
% Give an output to the plot handles if requested:
438438
if ( nargout > 0 )
@@ -550,7 +550,7 @@
550550

551551
% Plot the markers and match the color with the delta lines:
552552
hjj = plot(xData(jj), yFinish(jj), marker, ...
553-
'markersize', 6, 'linestyle', 'none', 'handlevis', 'off');
553+
'markersize', 6, 'linestyle', 'none', 'handlevisibility', 'off');
554554
set(hjj, 'color', get(h(j), 'color'));
555555
set(hjj, 'markerfacecolor', get(h(j), 'color'))
556556
end

@chebfun/plot3.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@
136136
end
137137

138138
% We don't want these guys to be included in LEGEND(), so we turn them off.
139-
set(h1, 'handlevis', 'off');
140-
set(h2, 'handlevis', 'off');
141-
set(h3, 'handlevis', 'off');
139+
set(h1, 'handlevisibility', 'off');
140+
set(h2, 'handlevisibility', 'off');
141+
set(h3, 'handlevisibility', 'off');
142142
% The dummy plot is invisible, but its handle is visible (for LEGEND).
143-
set(hDummy, 'handlevis', 'on', 'visible', 'off'); % ¯\_(o.O)_/¯
143+
set(hDummy, 'handlevisibility', 'on', 'visible', 'off'); % ¯\_(o.O)_/¯
144144

145145
% Give an output to the plot handles if requested:
146146
if ( nargout > 0 )

0 commit comments

Comments
 (0)