You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 5, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: Readme.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,8 @@ Append string(s), `newStrings`, to the specified `Legend` object, `legendhandle`
18
18
19
19
The legend will only be updated with the new strings if the number of strings in the existing legend plus the number of strings in `newStrings` is the same as the number of plots on the associated `Axes` object (e.g. if you have 2 lineseries and 2 legend entries already no changes will be made).
20
20
21
+
**NOTE**: For MATLAB R2017a or newer, the `legend` object's [`'AutoUpdate'`](https://www.mathworks.com/help/matlab/ref/matlab.graphics.illustration.legend-properties.html#bt7bgi4-1-AutoUpdate) property *must* be set to `'off'` before adding additional lineseries to the plot.
22
+
21
23
#### Examples
22
24
##### Adding one legend entry
23
25
% Sample data
@@ -62,6 +64,8 @@ The legend will only be updated with the new strings if the number of strings in
62
64
#### Description
63
65
Rearrange the entries of the specified `Legend` object, `legendhandle`, so they are in the order specified by the vector `newOrder`. `newOrder` must be the same length as the number of legend entries in `legendhandle`. All elements of order must be unique, real, positive, integer values.
64
66
67
+
**NOTE**: `legtools.append` is currently unsupported for MATLAB >= R2017a
68
+
65
69
#### Example
66
70
% Sample data
67
71
x = 1:10;
@@ -87,6 +91,8 @@ If `removeidx` specifies all the legend entries the `Legend` object, `legendhand
87
91
88
92
If a legend entry to be removed is one generated by `legtools.adddummy`, its corresponding Chart Line Object will also be deleted.
89
93
94
+
**NOTE**: `legtools.remove` is currently unsupported for MATLAB >= R2017a
95
+
90
96
#### Example
91
97
% Sample data
92
98
x = 1:10;
@@ -154,4 +160,4 @@ For a single dummy legend entry, `plotParams` is defined as a cell array of stri
0 commit comments