move legend and sqrt method scale