How to remove autogenerated legend in stackedplot?

4 次查看(过去 30 天)
Hi, have the following stackedplot, and if I plot multiple variables in one of the stackedplots I get a legend that looks like this:
Is there any way to turn that off?
Thanks

采纳的回答

Cris LaPierre
Cris LaPierre 2021-7-16
Yes. Set the corresponding AxesProperties.LegendVisible property to 'off'. See here.
You will have to repeat for each axes.
s.AxesProperties(3).LegendVisible = 'off'

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Legend 的更多信息

产品


版本

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by