Changed the drawing mode from simply drawing a series of dots to interpolating the points, leading to perfectly smooth lines! Major improvement. Code needs a little bit of cleanup, though.