A question about ColorData input arguments.

I want to color a point in a graph I have, but I don't want to use the built in colors (orange, green, blue etc) I saw someone coloring a point using ColorData function, like so:

    Graphics[{ColorData[96, 10], PointSize[Large], Point[{-\[Pi], 0}], 
  Point[{0, 0}], Point[{\[Pi], 0}], Point[{2 \[Pi], 0}], 
  Point[{3 \[Pi], 0}], Point[{4 \[Pi], 0}], Point[{5 \[Pi], 0}]}],

(in this case ColorData[96,10] comes out as orange.) I know that the first argument in colordata should be the color scheme, but what is 96 ? is there a chart of all colors in all schemes and numbered?


  • $\begingroup$ The first value goes from 1-113 and you select a sceme and the second from 1-10 $\endgroup$ – J42161217 Nov 9 '18 at 11:10
  • $\begingroup$ I am confused, does the accepted answer address your questions? Because I don't see how. $\endgroup$ – Kuba Nov 9 '18 at 11:42
  • 1
    $\begingroup$ @Kuba I finished the numbered chart. do you like it? $\endgroup$ – J42161217 Nov 9 '18 at 12:03
  • $\begingroup$ @J42161217 I was rather expecting to get an answer to witch, named or whatever scheme, does e.g. ColorData[96] corresponds to. But if that was not OP's question then fine :) $\endgroup$ – Kuba Nov 9 '18 at 12:12

Here is the numbered chart

Graphics[Text[Style[i, Small]], ImageSize -> 20], {i, 0, 10}]}, 
Table[Join[{Graphics[Text[Style[k, Small]], ImageSize -> 20]}, 
Table[Graphics[{ColorData[k, j], Disk[]}, ImageSize -> 20], {j, 
  10}]], {k, 113}]]]    

enter image description here

|improve this answer|||||
  • $\begingroup$ Thank you ! this solves my conundrum! $\endgroup$ – Pavel Penshin Nov 9 '18 at 12:30
  • $\begingroup$ I'm glad I helped ;) $\endgroup$ – J42161217 Nov 9 '18 at 12:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.