On Fri, 30 Sep 2005, Adam Phillips wrote:
> Hi Micah,
>
> Try setting this resource:
>
> mpFillDrawOrder = "PreDraw"
>
> All map filled areas should be filled first, everything else including your 
> text should be drawn afterwards..
>
> Adam
Hi Micah,
I'd like to add something to Adam's post, and that is that when you
call "gsn_text", the text gets drawn right at that time.  This means
if you draw anything else afterwards, like by calling a gsn_csm_xxxx
plotting routine, then that plot will appear on top of your text.
So, you should make sure that your "gsn_text" call is after any drawing
calls that take place.
However, in order to call "gsn_text", you have to have already created
the plot, because "gsn_text" expects a plot id as one of its
arguments.  So, if you are seeing the ocean fill *after* the text
fill, then you must be doing something like this:
    res = True
    res@gsnDraw = False
    res@gsnFrame = False
    ...
    plot = gsn_csm_xxxx(wks,data,res)
    gsn_text(wks,plot,"text string",.5,.5,False)
    draw(plot)
    frame(wks)
If so, then just switch the draw and gsn_text calls:
    plot = gsn_csm_xxxx(wks,data,res)
    draw(plot)
    gsn_text(wks,plot,"text string",.5,.5,False)
    frame(wks)
If you are not calling "gsn_text", but are actually calling "gsn_add_text",
then Adam's solution should do it for you.
--Mary
> Micah Sklut wrote:
>> Hi, I've got a simple question, which I haven't been able to solve...
>>  I would like to add text to a map.
>> I am using gsn_text, which is drawing the text, however the ocean color 
C>> fill is going over top of my text.
>>  I'm sure its a draw order issue, can someone help?
>>  Thank you.
>>  Micah Sklut
>> 
>> 
>> ------------------------------------------------------------------------
>> 
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk@ucar.edu
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> -- 
> --------------------------------------------------------------
> Adam Phillips			             asphilli@ucar.edu
> National Center for Atmospheric Research   tel: (303) 497-1726
> ESSL/CGD/CAS                               fax: (303) 497-1333
> P.O. Box 3000				Boulder, CO 80307-3000
> http://www.cgd.ucar.edu/cas/asphilli
> _______________________________________________
> ncl-talk mailing list
> ncl-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Fri Sep 30 2005 - 10:57:47 MDT