gsn_polymarker multiple colors

From: Chad Bahrmann (bahrmann AT meteo.psu.edu)
Date: Tue Nov 23 2004 - 10:21:44 MST


I am trying to get some polymarkers on a map with 3 distinct colors.
However, I get the first and last colors requested but the second
requested markers are ploted with the last color requested. See below.
I get the Blue and Green but not the FireBrick.

 res = True
  res@mpFillOn = False ; turn off gray fill

  res@lbPerimOn = False
  res@mpOutlineBoundarySets = "National" ; turn on country
boundaries
  res@mpGeophysicalLineColor = "Gray50" ; color of cont. outlines
 res@mpGeophysicalLineThicknessF = 1 ; thickness of outlines
 res@mpOutlineBoundarySets = "AllBoundaries" ; add state boundaries
 res@mpUSStateLineColor = "black" ; make them red
 res@mpUSStateLineThicknessF = 1.25 ; thickness of outlines
 res@mpDataBaseVersion = "Ncarg4_1"
 res@mpDataSetName = "Earth..2"

  res@mpMaxLatF = 43 ; choose subregion
  res@mpMinLatF = 39
  res@mpMaxLonF = -74
  res@mpMinLonF = -81
  res@gsnMaximize =True
  res@gsnDraw=False
  res@gsnFrame=False
  map = gsn_csm_map_ce(wks,res) ; draw map
  res@gsMarkerIndex = 16 ; polymarker style
  res@gsMarkerSizeF = 6 ; polymarker size
  draw(map)
  res@gsMarkerColor ="NavyBlue"
  gsn_polymarker(wks,map,anno_lon_bos,anno_lat_bos,res)
  res@gsMarkerColor ="FireBrick4"
  gsn_polymarker(wks,map,anno_lon_ssi,anno_lat_ssi,res)
  res@gsMarkerColor ="DarkGreen"
  gsn_polymarker(wks,map,anno_lon_nu,anno_lat_nu,res)
  frame(wks)

_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Wed Nov 24 2004 - 09:32:08 MST