Re: problem with text strings

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 30 Nov 2005 13:57:52 -0700 (MST)


I want to emphasize something that Adam touched on here, and that is
that the "tx* resources only apply when you've actually created a
separate text object (via gsn_text, gsn_text_ndc, or gsn_add_text, or,
if you don't use gsn functions, then via creating a TextItem object).
The tx* resources are not meant to be used in conjunction with another
plot, like a contour or XY plot. To be honest, I believe setting
"txString" with the gsn_xxxx functions is considered undefined
behavior, and without getting into the code, I can't be certain of
what it's doing. I am surprised to hear that it is actually
overwriting your gsnXXXString resources, because the two should be
mutually exclusive.

Do you have the full script and data that you could provide me with,
so I can try running it myself?



On Wed, 30 Nov 2005, Adam Phillips wrote:

> Hi Mike,
> I believe that setting txString will override the gsnLeft/Center/RightString
> resources. FYI: You do have the option to move the gsnLeftString downward by
> using gsnLeftStringOrthogonalPosF:
> Assuming you do want to keep your gsnLeft/RightString resorces intact, and
> that you aren't using gsnCenterString you can set gsnCenterString and use the
> Orthogonal and Parallel resources to move the text to wherever you want:
> Finally, if that doesn't work for you I would just go ahead and use
> gsn_text_ndc and manually set the text...
> Hope that helps.
> Adam
> wrote:
>> Hi all,
>> I am trying to put text in the lower left of the plots I am making. I use
>> the resources:
>> pres_at_txString = ":F8:l"+"="+":F4:"+gamma1+":F4:K(Wm:S:-2:N:):S:-1"
>> pres_at_txJust = "BottomLeft"
>> pres_at_txPerimOn = True
>> In doing this though, it erases the left and right string
>> (gsnLeftString/RightString) I have and replaces it with the above text and
>> no text appears on the bottom left of the plot. Any help would be greatly
>> appreciated.
>> Mike Brown
>> _______________________________________________
>> ncl-talk mailing list
> --
> --------------------------------------------------------------
> Adam Phillips
> National Center for Atmospheric Research tel: (303) 497-1726
> ESSL/CGD/CAS fax: (303) 497-1333
> P.O. Box 3000 Boulder, CO 80307-3000
> _______________________________________________
> ncl-talk mailing list
ncl-talk mailing list
Received on Wed Nov 30 2005 - 13:57:52 MST

This archive was generated by hypermail 2.2.0 : Wed Nov 30 2005 - 14:13:26 MST