How do I get legend colors to match my plot colors ?
Show older comments
Here is my code: Plot and legend seem to not understand each other.
figure(1)
for j = [3,6,8,9,10,5]
hold all
plot(DataZero(:,j),DataZero(:,7),'LineWidth',0.5)
end
L = legend('LCenter','LN','LNN','LS','LSS','LW');
axis([-12 25 0 1400])
set(L,'Location','southeast')
hold off
1 Comment
Jurgen
on 7 May 2013
What error do you get?
Answers (0)
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!