How do we show a legend on a different axes ?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
Geoff Hayes
2015-4-11
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?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!