Generate distinctly different RGB colors in graphs

前端 未结 12 1237
故里飘歌
故里飘歌 2020-11-30 16:51

When generating graphs and showing different sets of data it usually a good idea to difference the sets by color. So one line is red and the next is green and so on. The pro

12条回答
  •  情歌与酒
    2020-11-30 17:44

    for getting nth colour. Just this kind of code would be enough. This i have use in my opencv clustering problem. This will create different colours as col changes.

    for(int col=1;col

提交回复
热议问题