Warning tiMainstring

From: Basit Khan <bak41_at_nyahnyahspammersnyahnyah>
Date: Thu, 06 Sep 2007 12:23:12 +1200

Hi there,

Further to my previous email regarding tiMainstring warning, the ncl
script is attached as box_3.ncl and the resultant error/warning message
is attached as box_3.log for your review.

By "NCL does not plot anything at all" I mean to say that the
visualization X11 window does not appear at all. I have downloaded the
box_3.ncl script from NCL website and I believe that the script is fine.
There is something somewhere going wrong at my end; however, I have
again checked to ensure that "draw" and "frame" function are called in
the script.

Thank you very much for your continual help and support

----
Basit A. Khan
PhD Candidate
Centre for Atmospheric Research
Department of Geography
University of Canterbury  Te Whare Wananga o Waitaha
Private Bag 4800
Christchurch 8020, New Zealand
Tel: (643) 364 2987 Ext. 7912
Fax: (643) 364 2907
bak41_at_student.canterbury.ac.nz

;*********************************************
; box_3.ncl
;*********************************************
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
;*********************************************
begin
;**********************************************
; Create some fake data
;**********************************************
  yval = new((/3,5/),"float",-999.)
  yval(0,0) = -3.
  yval(0,1) = -1.
  yval(0,2) = 1.5
  yval(0,3) = 4.2
  yval(0,4) = 6.
  
  yval(1,0) = -1.
  yval(1,1) = 0.
  yval(1,2) = 1.
  yval(1,3) = 2.5
  yval(1,4) = 4.
  
  yval(2,0) = -1.5
  yval(2,1) = 0.
  yval(2,2) = .75
  yval(2,3) = 2.
  yval(2,4) = 6.5

  x = (/-3., -1., 1./)
;**********************************************
; create plot
;**********************************************
  wks = gsn_open_wks("ps","box")
;**********************************************
; resources for plot background
;**********************************************
  res = True ; plot mods desired
  res_at_tmXBLabels = (/"Control","-2Xna","2Xna"/) ; labels for each box
  res_at_tiMainString = "Box Plot with Polymarkers"
;**********************************************
; resources for polylines that draws the boxes
;**********************************************
  llres = True
  llres_at_gsLineThicknessF = 2.5 ; line thickness
;**********************************************
; resources that control color and width of boxes
;**********************************************
  opti = True
  opti_at_boxWidth = 1.2 ; Width of box (x units)
  opti_at_boxColors = (/"blue","red","green"/) ; Color of box(es)
;***********************************************
  plot = boxplot(wks,x,yval,opti,res,llres) ; All 3 options used...
;***********************************************
; add some polymarkers
;***********************************************
  mres = True ; marker mods desired
  mres_at_gsMarkerIndex = 3 ; polymarker style
  mres_at_gsMarkerSizeF = 20. ; polymarker size
  mres_at_gsMarkerColor = "red" ; polymarker color
  xi = yval(0,4) ; polymarker locations
  xi2 = yval(1,4)+0.25
  xi3 = yval(2,4)-0.25

  dum1 = gsn_add_polymarker(wks,plot,-3.,xi,mres)
  dum2 = gsn_add_polymarker(wks,plot,-1.,xi2,mres)
  dum3 = gsn_add_polymarker(wks,plot,1.,xi3,mres)
  
  mres_at_gsMarkerColor = "navy blue" ; change color
  mres_at_gsMarkerIndex = 1 ; change style
  mres_at_gsMarkerSizeF = 40. ; change size

  dum4 = gsn_add_polymarker(wks,plot,-3.,xi-4.,mres)
  dum5 = gsn_add_polymarker(wks,plot,-1.,xi2-2.,mres)
  dum6 = gsn_add_polymarker(wks,plot,1.,xi3-1.,mres)
  draw(plot)
  frame(wks)
  
end

        

 Copyright (C) 1995-2006 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 4.2.0.a033
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
(0) Plot resources detected, accepting
warning:tiMainString is not a valid resource in plot.PlotManager at this time

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Sep 05 2007 - 18:23:12 MDT

This archive was generated by hypermail 2.2.0 : Fri Sep 07 2007 - 11:00:32 MDT