[ncl-talk] Label bar colours and contour colours not the same

Sara Jackson sja at dhigroup.com
Sun Mar 6 22:53:44 MST 2016


Hi there,

I am having trouble with getting the colours on the NCL contour plot to match the corresponding number on the label bar. I have attached my script (which has become a bit messy while trying to fix this!) and I have attached a copy of the image which is the problem.

A good way to see the issue is that the sea (red) should be labeled as water which is 17 in the legend, but on the label bar it is labelled as 18.
The same for the Urban area. Over Singapore the colour should be corresponding to 13 for urban but it is showing 14.

Thus the numbers need to be moved 1 to the right on the colour bar for it to match the legend and the plot. I have tried everything I can see on the internet on trying to try and solve this but I do not have too much experience with NCL.

Any question please ask.

Thanks,
Sara Jackson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160307/3dc7df60/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plt_landuse_zoom_SG_wronglabelbar.png
Type: image/png
Size: 114310 bytes
Desc: plt_landuse_zoom_SG_wronglabelbar.png
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160307/3dc7df60/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot_landuse_SG.ncl
Type: application/octet-stream
Size: 5028 bytes
Desc: plot_landuse_SG.ncl
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160307/3dc7df60/attachment.obj 


More information about the ncl-talk mailing list