Open zhuguodong98 opened 4 years ago
Have you found a solution? I am also struggling to overcome this.
res.cnExplicitLabelBarLabelsOn = True res.lbLabelStrings = ["Low","Moderate","High","Very \n High","Extreme"]
Ok, I found the solution. First, the plot must be generated and then change the strings. Weird..
res2 = Ngl.Resources() res2.lbLabelStrings = ["Low","Moderate","High","Very \n High","Extreme"] Ngl.set_values(plot.contour,res2)
Hello!!! when I used 'Ngl.contour_map', the lbLabelStrings was useless. Such as : cnres.cnExplicitLabelBarLabelsOn = True cnres.lbLabelStrings = ['0','0.1','0.2','0.3','0.4','0.5','0.6','0.7','0.8','0.9','1.0'] But didn't work.