Scatter plot markers

From: Mateus Teixeira <mateus.teixeira_at_nyahnyahspammersnyahnyah>
Date: Tue, 6 Oct 2009 23:50:36 -0300

Dear NCL users,

I'm sorry for the last message (copied below). After trying in a wrong way,
I realize that I only can do what I want with gsn_add_polymarker function.

Best regards and apologize for that message.

Mateus

---------- Forwarded message ----------
From: Mateus Teixeira <mateus.teixeira_at_gmail.com>
Date: 2009/10/6
Subject: Scatter plot markers
To: ncl-talk_at_ucar.edu

Dear NCL users,

I'm trying to create a scatter plot in which the points have differente
marks, according to an array that gives the mark indexes, but it seems that
the xyMarkers are not getting the array with the marks. Please see the
script below:

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

begin

x = ispan(1,10,1)
y = x*log(x*1.)/cos(x*1.)
marks = (/1,1,1,1,2,3,3,3,2,1/)

scatterRes = True
scatterRes_at_xyMarkLineModes = "Markers"
scatterRes_at_xyMarkers = marks
scatterRes_at_xyMarkerSizeF = 0.03

wks = gsn_open_wks("ps","test")
plot = gsn_csm_xy( wks, x, y,
scatterRes )

end

Can you see what I'm doing wrong?

Best regards,

-- 
Mateus da Silva Teixeira
Meteorologista
Instituto de Pesquisas Meteorológicas - IPMet
Universidade Estadual Paulista - UNESP
Av. Luis Edmundo Carrijo Coube, 14-01 - Cx. Postal 281 - CEP 17033-360
Bauru - SP - Brasil
Fone: +55 14 3103-6030 / fax: 3203-3649
Registered Linux User #466740 (http://counter.li.org/)
-- 
Mateus da Silva Teixeira
Meteorologista
Instituto de Pesquisas Meteorológicas - IPMet
Universidade Estadual Paulista - UNESP
Av. Luis Edmundo Carrijo Coube, 14-01 - Cx. Postal 281 - CEP 17033-360
Bauru - SP - Brasil
Fone: +55 14 3103-6030 / fax: 3203-3649
Registered Linux User #466740 (http://counter.li.org/)

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Oct 06 2009 - 20:50:36 MDT

This archive was generated by hypermail 2.2.0 : Fri Oct 09 2009 - 08:29:22 MDT