bugfix
ref #3 works for x axis
ref #3 works for x axis. Dots beyond the borders
ref #3 works for y axis