correct tolerance and relative arguments
remove useless legend.prefix