The points and axes in ListPlot are sometimes noticeably offset. I have a minimal working example which is pretty dang minimal:

ListPlot[{{0, 0}}]


enter image description here

where the dot is noticeably off-center. How do I fix this?

I don't think this is the same problem as the one described in Point Renderings Slightly Off in Mathematica, because Mr.Wizard's solution BaseStyle -> Opacity[.999] does not help.

Mathematica v11.1.0 for Mac OS X x86 (64-bit), running on Mac OS X Yosemite.

  • 1
    $\begingroup$ I think this is an antialiasing artifact. You could try including things like AxesStyle->Directive[Antialiasing->False] or BaseStyle->{Antialiasing->False} and see if that helps. $\endgroup$ – Carl Woll Jul 14 '17 at 23:10
  • $\begingroup$ @CarlWoll Nope, neither one helped. $\endgroup$ – tparker Jul 15 '17 at 0:11
  • 2
    $\begingroup$ Strangely, the point in Graphics[{Blue, PointSize[Medium], Point[{0, 0}]}, Axes -> True] is also off-center, but in a different direction. At least that one is consistent with Graphics[{Blue, Disk[{0, 0}, 0.02]}, Axes -> True, PlotRange -> {{-1, 1}, {-1, 1}}]. $\endgroup$ – Rahul Jul 15 '17 at 13:39
  • 1
    $\begingroup$ However, ListPlot[{{0, 0}}, PlotMarkers -> {Graphics[{Blue, Disk[{0, 0}, 1]}], 0.04}] looks correctly centered. $\endgroup$ – Rahul Jul 15 '17 at 13:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.