Make xmin and xmax consistent in visual tests