I'm trying to create a dotted line, but the path is showing up like it has additional anchor points where there are none. How do I fix this?
I think @user287001 may be correct about you using a brush. That's really the primary way artwork would not adhere to the path. His/her answer is fantastic for that situation.
However, I would not use a brush for this. I would merely create the dotted path using the available options on the Stroke Panel.
You can see that when you enable the
Align to Pixel Grid option, the "dots" start to become inconsistent....
You have used a scatter brush to stroke your curve. There's bearing scattering ON like this:
Double click the brush icon in the Brushes panel and remove the scattering or drag a new dot to the brushes collection and define it to be a pattern brush. One dot is enough, set the needed spacing in the brush defining dialog which pops up when you drag a dot to the brushes panel.