Generate distinctly different RGB colors in graphs

前端 未结 12 1221
故里飘歌
故里飘歌 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:43

    I would start with a set brightness 100% and go around primary colors first:

    FF0000, 00FF00, 0000FF

    then the combinations

    FFFF00, FF00FF, 00FFFF

    next for example halve the brightness and do same round. There's not too many really clearly distinct colors, after these I would start to vary the line width and do dotted/dashed lines etc.

提交回复
热议问题