Back to Data Visualization
legend
Add legend to current chart
Syntax
legend('label1', 'label2', ...)Description
Adds a legend to the most recently created chart with the given labels.
Parameters
| Name | Description |
|---|---|
| labels | One or more string labels |
Returns
null
Examples
Try It
>> legend('sin', 'cos')