begin ;---Generate dummy values from 0.5 to 99.5. data = generate_2d_array(10, 10, 0.5, 99.5, 0, (/50,50/)) wks = gsn_open_wks("png","labelbar") cmap = read_colormap_file("WhiteBlue") res = True res@cnFillOn = True res@cnFillPalette = cmap(::-1,:) res@tiMainString = "Add the triangle ends" res@cnLevelSelectionMode = "ExplicitLevels" res@cnLevels = ispan(10,90,10) res@lbBoxEndCapStyle = "TriangleBothEnds" plot = gsn_csm_contour(wks,data,res) res@cnLabelBarEndStyle = "IncludeMinMaxLabels" res@tiMainString = "Include the min/max labels" plot = gsn_csm_contour(wks,data,res) res@lbLabelStrings = "" + ispan(0,100,10) res@tiMainString = "Force the end labels to be 0 and 100" plot = gsn_csm_contour(wks,data,res) end