I can reproduce this using Mathematica 12.2 on macOS, but not using Mathematica 12.3.1. I believe it is a rendering bug.
Simply copying the graphics expression between a 12.3 and a 12.2 notebook makes the problem appear/disappear, which shows that the issue is specific to graphics rendering.
It seems that the problem appears whenever there is a Line
with a large number of points, and Opacity
of less than 1. Perhaps the line is broken to smaller pieces internally and what we see if the overlap between these pieces?
A simpler example to reproduce the problem is:
Graphics[{Thickness[0.02], GrayLevel[0, 0.5],
Line[Table[{k, k}, {k, 1000}]]}]
One possible workaround is to reduce the number of points. Unfortunately, there is a risk that the plot quality will be reduces as well. I suggest that you experiment with MaxPlotPoints
settings. I need to use MaxPlotPoints -> 100
or less on my machine to make the problem go away, showing that the Line
is broken to pieces with 100 points each. It looks like on your machine this value may be closed to 500 (as I see three overlaps for 1500 points). 500 should be sufficient for most plots.
I expect someone might be able to produce a workaround using undocumented Graphics
rendering options. I suggest you contact Wolfram Support and if they give you a better workaround, post it here.
MaxPlotPoints
. $\endgroup$