Plotting a curve with a printer