How do I create one legend for several subplots?
Show older comments
I have a 4 subplots in a 2x2 grid. They display similar data, so I need only one legend for them. How do I set an overall legend for all 4 subplots? These subplots have exactly the same legend. When I try to add a legend to the last subplot, it is always inside the 4th axis. I need to move the overall legend out of the last subplot.
Accepted Answer
More Answers (1)
Bill Tubbs
on 8 Jun 2022
0 votes
This is a good answer:
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!