How do we show a legend on a different axes ?

1 view (last 30 days)
Evan Luo
Evan Luo on 11 Apr 2015
Commented: Geoff Hayes on 11 Apr 2015
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
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?

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!