Skip to main content

All Questions

2 votes
2 answers
893 views

Matlab: How to set color of legend in a scatter plot where each data point gets a different color?

Here is the sample code: x = rand(100,1); y = rand(100,1); score = rand(100,1); figure; colormap(flipud(bone)); caxis([0 1]) axis([0 1 0 1]) scatter(x,y,50,score,'+','LineWidth',2); legend('scores'); ...
ChubbyRuby's user avatar