2
$\begingroup$

I have a plot like this:

data={{{1, 1}}, {{2, 2}}, {{3, 3}}, {{4, 4}}, {{5, 5}}, {{6, 6}}};
ListPlot[data,  PlotMarkers -> {Automatic, 25}]

Example Plot

From this question I know how to use a specific plot marker from the list of automatic plot markers. But which colour is Mathematica using? Using ColorData[1][n] I couldn't find the right Palette yet.

$\endgroup$
3

1 Answer 1

5
$\begingroup$

Default color scheme for ListPlot is ColorData[97]:

"DefaultColor" /. Themes`DefaultStyles[ListPlot][[All, 2]]

 97  

ColorData[97, "Image"]

enter image description here

Row[("DefaultPlotStyle" /. (Method /.
  Charting`ResolvePlotTheme[Automatic, ListPlot]))[[All, 1]]]

enter image description here

Row[ListPlot[data,  PlotMarkers -> {Automatic, 25}, ImageSize -> 300, 
  PlotStyle -> #,   PlotLabel -> Style["PlotStyle -> " <> ToString[#], 16]] & /@ 
 {Automatic, 97}, Spacer[10]]

enter image description here

$\endgroup$
2
  • $\begingroup$ Thank you. Is there a list of those defaults or a way to finde the default value? Or do I just have to know, for example, that the default for ListPlot is ColorData[97]? $\endgroup$
    – phoenix-bs
    Nov 13, 2018 at 10:46
  • 1
    $\begingroup$ @phoenix-bs, thank you for the accept. You can use undocumented internal functions Charting`ResolvePlotTheme and Themes`DefaultStyles to discover the default values for various plot and theme combinations. $\endgroup$
    – kglr
    Nov 13, 2018 at 11:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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