Legend
2 次查看(过去 30 天)
显示 更早的评论
Hi, I am plotting a matrix but I don't want the legend to divide the label into the different columns instead just one "legend" per matrix. Is this possible?
1 个评论
Jan
2011-12-11
What exactly does "plotting a matrix" mean? As lines, as image, as PATCH or SURFACE object?
What does "one legend per matrix" exactly mean?
回答(1 个)
the cyclist
2011-12-11
I don't understand your question, but I am going to take a guess. Is this what you mean? Notice that I plotted four lines, but only have a legend on two of them.
h = plot(rand(5,4),'.-')
legend([h(1) h(3)],{'First line','Third line'})
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!