Adjusted the number of visible legend on the single measurement window