<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hey Tabish, can you be more specific? <div class="">I achieved something similar a few days ago: I wanted to put some markers on a contour plot and to match the color scale in order to have a visual estimation of uncertainty. I think the only way to go is to put the marker command into a loop so that every color is computed when the marker is drawn. I’m attaching script and figure (sorry but had no time to clean the script). Notice that I’m also putting a border on the marker by drawing a larger black marker before.</div><div class=""> The relevant parts are:</div><div class=""><br class=""></div><div class=""><div class=""> <font face="Menlo" class="">mres=True</font></div><div class=""><font face="Menlo" class=""> mres@gsMarkerIndex = 16</font></div><div class=""><font face="Menlo" class=""> mres@gsMarkerSizeF = 0.008</font></div><div class=""><font face="Menlo" class=""> mres2=True</font></div><div class=""><font face="Menlo" class=""> mres2@gsMarkerIndex = 16</font></div><div class=""><font face="Menlo" class=""> mres2@gsMarkerSizeF = mres@gsMarkerSizeF+0.0015</font></div><div class=""><font face="Menlo" class=""> mres2@gsMarkerColor = "black"</font></div><div class=""><font face="Menlo" class=""><br class=""></font></div><div class=""><font face="Menlo" class=""> cmap = ResC@cnFillPalette</font></div><div class=""><font face="Menlo" class=""> cnLevels=ResC@cnLevels</font></div><div class=""><font face="Menlo" class=""> dims=dimsizes(rain_tot)</font></div></div><div class=""><div class=""><font face="Menlo" class=""> marker=new(product(dimsizes(rain_tot)), graphic)</font></div><div class=""><font face="Menlo" class=""> marker_border=new(product(dimsizes(rain_tot)), graphic)</font></div><div class=""><font face="Menlo" class=""> plot=gsn_csm_contour(wks,rain_estC,ResC)</font></div><div class=""><font face="Menlo" class=""><br class=""></font></div><div class=""><font face="Menlo" class=""> k=0</font></div><div class=""><font face="Menlo" class=""> do i=0,dims(0)-1</font></div><div class=""><font face="Menlo" class=""> do j=0,dims(1)-1</font></div><div class=""><font face="Menlo" class=""> mres@gsMarkerColor=get_color_rgba(cmap, cnLevels, rain_tot(i,j))</font></div><div class=""><font face="Menlo" class=""> marker_border(k) = gsn_add_polymarker(wks,plot,lhflx(i,j),duration(i,j),mres2)</font></div><div class=""><font face="Menlo" class=""> marker(k) = gsn_add_polymarker(wks,plot,lhflx(i,j),duration(i,j),mres)</font></div><div class=""><font face="Menlo" class=""> k=k+1</font></div><div class=""><font face="Menlo" class=""> delete(mres@gsMarkerColor)</font></div><div class=""><font face="Menlo" class=""> end do</font></div><div class=""><font face="Menlo" class="">end do</font></div></div><div class=""><br class=""></div><div class=""></div></body></html>