Improve plot

Use Bresenham's line drawing algorithm