How do I place a legend on a plot produced from the PLOTYY command in MATLAB 7.5 (R2007b)?
Show older comments
For example, if I execute the following commands, the legend only contains one line and the figure contains only one line:
x = 1:10;
y = 10:-1:1;
[ax,h1,h2] = plotyy(x,x,x,y);
[legh, objh] = legend('str1', 'str2');
Accepted Answer
More Answers (0)
Categories
Find more on Two y-axis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!