Also use minx when minx,maxx are passed