<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div id="yui_3_16_0_1_1445521349301_6279"><span id="yui_3_16_0_1_1445521349301_6352">Hi all. <br></span></div><div id="yui_3_16_0_1_1445521349301_6405"><span id="yui_3_16_0_1_1445521349301_6404">I was trying to give a different color to the rainfall range (value) recently. My actual data is some 300+ stations an when I run that script, the plot was all crowded . <br></span></div><div id="yui_3_16_0_1_1445521349301_6661"><span id="yui_3_16_0_1_1445521349301_6404"><br></span></div><div id="yui_3_16_0_1_1445521349301_6415"><span id="yui_3_16_0_1_1445521349301_6404">I thought of giving a different color to the marker itself without adding the text/rainfall value to the plot. <br></span></div><div dir="ltr" id="yui_3_16_0_1_1445521349301_6446"><span id="yui_3_16_0_1_1445521349301_6404">here is that part </span></div><div dir="ltr" id="yui_3_16_0_1_1445521349301_6403"><span id="yui_3_16_0_1_1445521349301_6465">;---------Adding Markers according to rainfall value<br class="" id="yui_3_16_0_1_1445521349301_6560"><br class="" id="yui_3_16_0_1_1445521349301_6562"> nrf = dimsizes(rf)<br class="" id="yui_3_16_0_1_1445521349301_6564"> markers = new(dimsizes(rf),string)<br class="" id="yui_3_16_0_1_1445521349301_6566"> dont_mark = "red"<br class="" id="yui_3_16_0_1_1445521349301_6568"><br class="" id="yui_3_16_0_1_1445521349301_6570"> res_mark = True<br class="" id="yui_3_16_0_1_1445521349301_6572"> res_mark@gsMarkerIndex = 1 ; 17 predefined markers available<br class="" id="yui_3_16_0_1_1445521349301_6574"> res_mark@gsMarkerSizeF = 0.012<br class="" id="yui_3_16_0_1_1445521349301_6576">; res_mark@gsMarkerColor = "black"<br class="" id="yui_3_16_0_1_1445521349301_6578"><br class="" id="yui_3_16_0_1_1445521349301_6580"> do n = 0, nrf-1<br class="" id="yui_3_16_0_1_1445521349301_6582"> if (rf(n).eq.0.0) then<br class="" id="yui_3_16_0_1_1445521349301_6584"> res_mark@gsMarkerColor = "Black"<br class="" id="yui_3_16_0_1_1445521349301_6586">; dum =gsn_add_polymarker(wks,plot,lon,lat,res_mark)<br class="" id="yui_3_16_0_1_1445521349301_6588"><br class="" id="yui_3_16_0_1_1445521349301_6590"> else if ((rf(n).ge.0.1).and.(rf(n).lt.2.4)) then<br class="" id="yui_3_16_0_1_1445521349301_6592"> res_mark@gsMarkerColor = "Blue"<br class="" id="yui_3_16_0_1_1445521349301_6594"><br class="" id="yui_3_16_0_1_1445521349301_6596"> else if ((rf(n).ge.2.5).and.(rf(n).lt.7.5)) then<br class="" id="yui_3_16_0_1_1445521349301_6598"> res_mark@gsMarkerColor = "Red"<br class="" id="yui_3_16_0_1_1445521349301_6600"> end if<br class="" id="yui_3_16_0_1_1445521349301_6602"> end if<br class="" id="yui_3_16_0_1_1445521349301_6604"> end if<br class="" id="yui_3_16_0_1_1445521349301_6606">; end do<br class="" id="yui_3_16_0_1_1445521349301_6608"><br class="" id="yui_3_16_0_1_1445521349301_6610"> dum =gsn_add_polymarker(wks,plot,lon,lat,res_mark)<br class="" id="yui_3_16_0_1_1445521349301_6612"> end do<br class="" id="yui_3_16_0_1_1445521349301_6614">print(rf+res_mark@gsMarkerColor)</span></div><div id="yui_3_16_0_1_1445521349301_6692" dir="ltr"><br><span id="yui_3_16_0_1_1445521349301_6465"></span></div><div id="yui_3_16_0_1_1445521349301_6999" dir="ltr"><span id="yui_3_16_0_1_1445521349301_6465">; ----------Now adding text--------------------</span></div><div id="yui_3_16_0_1_1445521349301_7000" dir="ltr"><span id="yui_3_16_0_1_1445521349301_6465">I get warning like this and the Plot has Only Black markers????<br></span></div><div id="yui_3_16_0_1_1445521349301_6763" dir="ltr"><span id="yui_3_16_0_1_1445521349301_6465">warning:TransformPostDraw: tfPolyDrawList element 273 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6720">warning:TransformPostDraw: tfPolyDrawList element 274 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6722">warning:TransformPostDraw: tfPolyDrawList element 275 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6724">warning:TransformPostDraw: tfPolyDrawList element 276 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6726">warning:TransformPostDraw: tfPolyDrawList element 277 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6728">warning:TransformPostDraw: tfPolyDrawList element 278 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6730">warning:TransformPostDraw: tfPolyDrawList element 279 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6732">warning:TransformPostDraw: tfPolyDrawList element 280 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6734">warning:TransformPostDraw: tfPolyDrawList element 281 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6736">warning:TransformPostDraw: tfPolyDrawList element 282 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6738">warning:TransformPostDraw: tfPolyDrawList element 283 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6740">warning:TransformPostDraw: tfPolyDrawList element 284 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6742">warning:TransformPostDraw: tfPolyDrawList element 285 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6744">warning:TransformPostDraw: tfPolyDrawList element 286 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6746">warning:TransformPostDraw: tfPolyDrawList element 287 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6748">warning:TransformPostDraw: tfPolyDrawList element 288 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6750">warning:TransformPostDraw: tfPolyDrawList element 289 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6752">warning:TransformPostDraw: tfPolyDrawList element 290 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6754">warning:TransformPostDraw: tfPolyDrawList element 291 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6756">warning:TransformPostDraw: tfPolyDrawList element 292 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6758">warning:TransformPostDraw: tfPolyDrawList element 293 is invalid<br class="" id="yui_3_16_0_1_1445521349301_6760">aditya@agniilap:~/geeta/ncl$ <br class="" id="yui_3_16_0_1_1445521349301_6762">kindly suggest. </span></div><div id="yui_3_16_0_1_1445521349301_6955" dir="ltr"><span id="yui_3_16_0_1_1445521349301_6465"><br></span></div></div></body></html>