How do we show a legend on a different axes ?
1 view (last 30 days)
Show older comments
For my GUI, I plot everything in handles.axes1. How do I show the legend in handles.axes2 ?
I tried legend(handles.axes2, 'xxx'), it throws me a warning and nothing happen. Is there a way to go about this?
1 Comment
Geoff Hayes
on 11 Apr 2015
Evan - what is the warning? The code that you have provided seems reasonable and so the legend should appear on the second axes. Have you verified that something has been drawn/plotted there?
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!