Legend repeating same color
显示 更早的评论
Please I am just plotting two data extracted from my work. but after plotting the code, the color of the legend keep repeating with the first color I input with indicating the legend of the next color. The attached data, Dposition and Uposition are the data plotted. please I hope anyone can help. 

1 个评论
Adam
2019-9-11
It's impossible to say much without you showing your code. The legend does what your code tells it to, but we don't know what that is. Also, note that the legend simply takes the colours from the plots that it is asked to include. You do have 2 blue plots on that graph so presumably it is showing those two, but again, we don't really know as we can't see any code.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!