I have been playing with different ways to plot a temperature chart. X-axis is always one step. Plotting single data points is easy, but I don't like how it looks when the temperature change is more than 2° (1 pixel per degree). Here are three exaggerated examples of up and down results. In practice, the chart will be mostly up or no change and cooling will be mostly down or no change. Screen will be approximately 64 x 64 pixels. Y-axis is 8, 8-pixel high pages.
Which do you prefer? (Open circles are the actual data points. Trend line is in green. Red line is the demarcation between two hypothetical pages.)
From the standpoint of coding, B is probably a tiny bit easier than A (i.e., previous datapoint does not need to be OR'ed) and is closer to the Bresenham line. Either A or B is easier than C. Clipping only one pixel off the 5th datapoint in B would be at least as difficult as C alone.
Which do you prefer? (Open circles are the actual data points. Trend line is in green. Red line is the demarcation between two hypothetical pages.)
From the standpoint of coding, B is probably a tiny bit easier than A (i.e., previous datapoint does not need to be OR'ed) and is closer to the Bresenham line. Either A or B is easier than C. Clipping only one pixel off the 5th datapoint in B would be at least as difficult as C alone.