Since these devices are getting faster and faster, you could have a smother (and more accurate) graph if you draw the graph (in memory) at 4x, 16x, etc resolution, then resampling it down to the correct resolution for display with a bilinear or bicubic algorithm.