Skip to main content
2 of 3
added 656 characters in body
lio
  • 2.4k
  • 14
  • 26

How to use standard plot markers

I cannot find a list of standard plot markers (square, trinagle, dot, circle, disk, cross, plus, ...) and how to use them.

Fore example I can access a self made cross, by:

cross = Graphics[{Blue, Line[{{{-1, -1}, {1, 1}}, {{-1, 1}, {1, -1}}}]}];
ListPlot[{{1, 1}, {2, 2}}, PlotMarkers -> {cross, 0.1}, PlotRange -> {{0, 3}, {0, 3}}]

enter image description here

Is this symbol and the others in the list predefined, and how can I use them in a plot?

UPDATE:

Following Carl Wolls proposal I tried:

p = Style[Graphics`PlotMarkers[][[6, 1]], FontFamily -> "Times"];

circle = Graphics[Circle[{0, 0}, 1]];

range = Range[0.9, 1.15, 0.1];

ListPlot[{{{1, 1}, {2, 2}}, {{1, 1}, {2, 2}}, {{1, 1}, {2, 2}}}, 
 PlotMarkers -> {{p, 300}, {cross, 0.05}, {circle, 0.5}}, 
 GridLines -> {range, range}, 
 PlotRange -> {{0.85, 1.15}, {0.75, 1.2}}]

enter image description here

As you see the symbol p is still not centered around the data point {1,1}, whereas circle and cross are correct.

lio
  • 2.4k
  • 14
  • 26