1
$\begingroup$

I have four lists of points, in my scenario they are very close to each other so I generate them by:

 list[1] = {{10, 20}, {400, 500}, {450, 602}, {580, 700}, {700, 
830}, {810, 920}}

 For[i = 2, i <= 4, i++,

  list[i] = list[1] + Table[{RandomReal[{-30, 30}], 0}, {i, 1, 6}]
    ]

Now when I listplot, I want the pointsize large so I do so in the plotstyle option:

ListPlot[Table[list[i], {i, 1, 4}], PlotStyle -> {PointSize[0.02]}, 
AspectRatio -> 1, ImageSize -> 500]

And everything comes out fine. However if I add the plotmarker option, either before or after the plotstyle option, it reduces the pointsize back to standard:

ListPlot[Table[list[i], {i, 1, 4}],PlotMarkers->Automatic, PlotStyle -> {PointSize[0.02]}, 
AspectRatio -> 1, ImageSize -> 500]

Anyone know why that happens? Thanks!

$\endgroup$
  • $\begingroup$ I am not sure but is it because PlotMakers is an inset to Graphics?mathematica.stackexchange.com/questions/20399/… $\endgroup$ – zhk Feb 23 '17 at 21:23
  • 2
    $\begingroup$ @MMM the default PlotMarkers are actually font glyphs - so in your answer you are (I believe) specifying a font size for them. That's why most of the answers on here about PlotMarkers say to use an actual graphics primitive instead. $\endgroup$ – Jason B. Feb 23 '17 at 22:20
  • $\begingroup$ @JasonB. I see, that clears it up thanks! $\endgroup$ – Mike Feb 23 '17 at 22:41
2
$\begingroup$

Comment

I don't know why it happens but you can adjust the size inside PlotMakers

 ListPlot[Table[list[i], {i, 1, 4}], PlotMarkers -> {Automatic, 100}, 
 PlotStyle -> {Red, Green, Blue}, AspectRatio -> 1, ImageSize -> 500]
$\endgroup$

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.