legend calibration