Fixed bug in plotter finding min/max x/y