auto scale legend