MATLAB Answers

How to remove autogenerated legend in stackedplot?

조회 수: 1(최근 30일)
Oliver Massaad
Oliver Massaad 2021년 7월 16일
답변: Cris LaPierre 2021년 7월 16일
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?

채택된 답변

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개)




Community Treasure Hunt

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

Start Hunting!

Translated by