Increase colour variation in a 2D scatter graph
2 ビュー (過去 30 日間)
古いコメントを表示
I am making a scatter graph of my data and am using one column of my data to colour code my points, so I am using the following code:
scatter(x,y,[],v,'filled')
However I would like to play with the colour option a little bit and change it so that I have a wider variation in colour and also change the colour scheme to blue yellow and red. How can I do this? I thought about squaring the vector that I use so as to show up a greater difference between points? Any other suggestions?
0 件のコメント
回答 (1 件)
Image Analyst
2015 年 5 月 9 日
One of the optional inputs to scatter is a list of colors for every marker. Use that. You can make them up with some custom code, or you can use one of the standard functions like hsv(), jet(), winter(), etc. Pass in the number of data markers into those color map creating functions.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Discrete Data Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!