Modify the legend. The LABEL= option suppresses the legend label. The SHAPE= option defines the size of the legend values. The CBORDER= option draws a black frame around the legend. The ORIGIN= option specifies the same position as in the AXIS1 statement.
legend1 label=none shape=bar(3,3) cborder=black origin=(24,);