Re: titles on a map

From: Mary Haley (haley AT XXXXXX)
Date: Tue Jan 06 2004 - 14:09:28 MST

  • Next message: Takeshi Enomoto: "Re: graphics pdf manual on web"

    >
    > Why does the simple script below produce the following error message and not
    > plot the title?
    >
    > warning:tiMainString is not a valid resource in test_map.PlotManager at this
    > time
    >
    >
    > load "$NCARG_ROOT/lib/ncarg/nclex/gsun/gsn_code.ncl"
    >
    > begin
    > wks = gsn_open_wks("x11","test")
    > resources = True
    > resources@tiMainString = "test"
    > map = gsn_map (wks,"Mercator",resources)
    > end
    >
    >

    Kip,

    I just ran across this myself the other day, and was wondering about
    it myself. I will have a fix in the next release. Fortunately, it
    works for the "gsn_csm_map" function, except you have to specify the
    projection with the resource list:

    load "$NCARG_ROOT/lib/ncarg/nclex/gsun/gsn_code.ncl"
    load "$NCARG_ROOT/lib/ncarg/nclex/gsun/gsn_csm.ncl"

    begin
      wks = gsn_open_wks("x11","test")
      resources = True
      resources@tiMainString = "test"
      resources@mpProjection = "Mercator"
      map = gsn_csm_map (wks,resources)
    end

    --Mary

    -------------------------------------------------
    Mary Haley haley AT ucar.edu
    NCAR/SCD/VETS 303-497-1254 (voice)
    1850 Table Mesa Dr 303-497-1804 (fax)
    Boulder, CO 80305
    -------------------------------------------------
    _______________________________________________
    ncl-talk mailing list
    ncl-talk AT ucar.edu
    http://mailman.ucar.edu/mailman/listinfo/ncl-talk



    This archive was generated by hypermail 2b29 : Tue Jan 06 2004 - 14:16:11 MST