Run the following and check if you still see the same problem:
plot(1:3,1:3,'ko-', 1:3,2:4,'ro-', 1:3,3:5,'bo-');
legend('Cerebellum','Putamen','Caudate');
If you see the same problem it could mean that your legend function is corrupted. Run whos('legend','-all') and check if you have an unexpected version of the legend function on your Matlab path.
If you don't see the same problem, it might be a problem with your data in some strange way. In any case it will help narrow down the possibilities.
4 Comments
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/501791-legend-looks-very-weird#comment_789580
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/501791-legend-looks-very-weird#comment_789580
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/501791-legend-looks-very-weird#comment_789586
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/501791-legend-looks-very-weird#comment_789586
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/501791-legend-looks-very-weird#comment_789602
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/501791-legend-looks-very-weird#comment_789602
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/501791-legend-looks-very-weird#comment_789607
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/501791-legend-looks-very-weird#comment_789607
Sign in to comment.