How to control the next color?

3 views (last 30 days)
Mr M.
Mr M. on 10 Nov 2015
Answered: Mike Garrity on 10 Nov 2015
I am using scatter plots: scatter(...); scatter(...); scatter(...); scatter(...); etc. Each of the plots has different colors automatically. How to change the colors? I dont want to give custom colors, just use another color map.

Answers (1)

Mike Garrity
Mike Garrity on 10 Nov 2015
If you're using scatter without a CData argument (4th arg), then it's using the ColorOrder property of the axes. You can find some examples of how to set that on this page of the doc.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!