multiple series on an xy plot

From: <brownmc_at_nyahnyahspammersnyahnyah>
Date: Mon, 23 Jan 2006 16:17:42 -0800 (PST)

Hi all,
I am trying to make an xy plot with 16 different points on it, labled as
numbers 1 though 16. When I try and make the plot, the points come up, but
all as the same series, not individual ones and ncl plots them all as "1"
on the graph instead of each point having its own number. Is there a way
to overlay multiple xy plots on to each other so I just have to make one
plot of each and then overlay them all? Here is the script I have so far,
thanks for the help.

Mike

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"

ctc =
(/2.37,2.58,3.02,1.74,3.07,2.54,1.44,1.27,2.86,4.33,3.40,2.11,2.20,2.08,4.36,3.76/)
gcs =
(/0.61,0.73,0.69,0.52,0.70,0.50,0.52,0.56,0.61,0.87,0.88,0.65,0.60,0.45,0.75,0.83/)

wks = gsn_open_wks ("X11","gcs_ctc")
res = True
res@tiMainString = ""
res@gsnStringFont = "helvetica"
res@xyMarkLineModes = "Markers"
;res@xyMarkers = 16
;res@xyMarkerColor = "red"
res@xyMarkerSizeF = 0.01
res@tmLabelAutoStride = True
res@tmXTOn = False
res@tmYROn = False
res@tiYAxisString = "California Temperature Change (K)"
res@tiXAxisString = "Global Climate Sensitivity (:F8:l)"
res@tmXBLabelFont = "helvetica"
res@tmYLLabelFont = "helvetica"
res@tiXAxisFont = "helvetica"
res@tiYAxisFont = "helvetica"

mstrings =
(/":F4:1",":F4:2",":F4:3",":F4:4",":F4:5",":F4:6",":F4:7",":F4:8",":F4:9",":F4:10",":F4:11",":F4:12",":F4:13",":F4:14",":F4:15",":F4:16"/)
  fontnums = 19
  xoffset = 0.0
  yoffset = 0.0
  ratio = 1.3125
  sizes = 1.5
  angle = 0.0

  new_indexes = NhlNewMarker(wks, mstrings, fontnums, xoffset, yoffset,
ratio, sizes, angle)
res@xyMarkers = new_indexes
plot = gsn_csm_xy (wks,gcs,ctc,res) ; create plot

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jan 23 2006 - 17:17:42 MST

This archive was generated by hypermail 2.2.0 : Tue Jan 24 2006 - 09:41:27 MST