matlab.graphics.chartcontainer.mixin.Legend Class
Namespace: matlab.graphics.chartcontainer.mixin
Add legend support to chart container subclass
Description
matlab.graphics.chartcontainer.mixin.Legend
is a class for adding legend
support to charts that inherit from matlab.graphics.chartcontainer.ChartContainer
. By inheriting from this class, you
can display a legend in your chart. Your users can select options in the figure menu bar or
the figure toolbar to show or hide that legend.
Use this syntax to enable legend support for your chart:
classdef MyChart < matlab.graphics.chartcontainer.ChartContainer & ... matlab.graphics.chartcontainer.mixin.Legend ... end
The matlab.graphics.chartcontainer.mixin.Legend
class is a handle
class.
Class Attributes
Abstract | true |
HandleCompatible | true |
For information on class attributes, see Class Attributes.
Properties
Methods
Examples
Version History
Introduced in R2019b