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
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 CenterFile Exchange 中查找有关 Legend 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by