4
$\begingroup$

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?

Thanks!

$\endgroup$
4
  • $\begingroup$ The first value goes from 1-113 and you select a sceme and the second from 1-10 $\endgroup$ Commented Nov 9, 2018 at 11:10
  • $\begingroup$ I am confused, does the accepted answer address your questions? Because I don't see how. $\endgroup$ Commented Nov 9, 2018 at 11:42
  • 1
    $\begingroup$ @Kuba I finished the numbered chart. do you like it? $\endgroup$ Commented Nov 9, 2018 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$ Commented Nov 9, 2018 at 12:12

1 Answer 1

6
$\begingroup$

Here is the numbered chart

GraphicsGrid[ Join[{Table[ 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

$\endgroup$
2
  • $\begingroup$ Thank you ! this solves my conundrum! $\endgroup$ Commented Nov 9, 2018 at 12:30
  • $\begingroup$ I'm glad I helped ;) $\endgroup$ Commented Nov 9, 2018 at 12:35

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.