Legend in several columns
이전 댓글 표시
Hi,
Every time I wanted to split my legend into more than one column I always used the function "columnlegend".
Now i am creating plots with a loop, as below:
legendLables=[];
for iM=1:length(Mvec)
plot(Xvec,F(iM,:), '*-', 'LineWidth',3,'Markersize',3); hold all
legendLables=[legendLables,{['$M=' num2str(Mvec(iM)) '$']}];
end
In this case the function columnlegend does not work, when I use:
columnlegend(6,legendLables,'NorthWest');
or
columnlegend(6,legendLables{:},'NorthWest');
Coudl you please help me?
Thanks in advance!
댓글 수: 3
Walter Roberson
2018년 12월 1일
columnlegend appears to be https://www.mathworks.com/matlabcentral/fileexchange/27389-simonhenin-columnlegend
Walter Roberson
2018년 12월 1일
What difficulty are you observing when you use the File Exchange contribution columnlegend() ?
Auryn_
2018년 12월 2일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!