How to remove autogenerated legend in stackedplot?
6 views (last 30 days)
Show older comments
Hi, have the following stackedplot, and if I plot multiple variables in one of the stackedplots I get a legend that looks like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/686318/image.png)
Is there any way to turn that off?
Thanks
0 Comments
Accepted Answer
Cris LaPierre
on 16 Jul 2021
You will have to repeat for each axes.
s.AxesProperties(3).LegendVisible = 'off'
0 Comments
More Answers (0)
See Also
Categories
Find more on Legend in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!