4

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, 2.5}, {0, 2.5}}, 
 AspectRatio -> Automatic]

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.3}}, GridLines -> {range, range}, 
 PlotRange -> {{0.8, 1.15}, {0.8, 1.15}}, AspectRatio -> Automatic]

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,396
  • 13
  • 26
  • 4
    You might be interested in this. – J. M.'s missing motivation Aug 23 '17 at 15:50
  • 1
    @J. M. Thank you, this link is very helpfull ... so there is no symbol predefined in 11.1.1? – lio Aug 23 '17 at 16:17
  • Look under the Palettes menu for Special Characters – Bob Hanlon Aug 23 '17 at 16:26
  • 2
    From here can try Graphics\PlotMarkers[]` – John Joseph M. Carrasco Aug 23 '17 at 16:31
  • @John Joseph M. Carrasco: This is interesting, but I found out that e.g. Graphics\PlotMarkers[][[1, 1]]`is unfortunately not centered ... the same problem for all other markers ... – lio Aug 23 '17 at 17:02
  • 1
    @Bob Hanlon: I tested a few special characters and none of them is really centered. For scientific presentation they should be centered around 0 as the cross in my example. – lio Aug 23 '17 at 17:07
  • You could try using Style[Graphics`PlotMarkers[][[1, 1]], FontFamily->"Times"] instead. – Carl Woll Aug 23 '17 at 23:21
  • 1
    @Carl Woll: see my update ... the same probe occurs for all markers in this set ... also for ... PlotMarkers[][[1, 1]], FontFamily -> "Times"]; – lio Aug 24 '17 at 04:02
  • 4
    I wouldn't use the standard markers exactly because they are not properly centered (that's because they use font glyphs instead of graphics primitives). I usually use what's in JM's link. – Szabolcs Aug 24 '17 at 09:02
  • 1
    I think the problem of defining well centered markers may deserve its own question, as it will be hard to find if titled "How to use standard plot markers". Or probably this question could be renamed and make it about that. – rhermans Aug 24 '17 at 14:45

0 Answers0