RE: [ncl-talk] working with text extent

From: Debasish Pai Mazumder <debasish_at_nyahnyahspammersnyahnyah>
Date: Tue, 16 Dec 2008 10:28:44 -0900

Dear Dave Reusch,

You can use "tiMainFontHeightF", "tiXAxisFontHeightF", "tiYAxisFontHeightF",
"tiMainFontAspectF", "tiXAxisFontAspectF", "tiYAxisFontAspectF" to control
the height/width of the title string.

Please also check the webpage

http://www.ncl.ucar.edu/Document/Graphics/Resources/ti.shtml

Thanks

Debasish

 

-----Original Message-----
From: ncl-talk-bounces_at_ucar.edu [mailto:ncl-talk-bounces_at_ucar.edu] On Behalf
Of David B. Reusch
Sent: Tuesday, December 16, 2008 7:26 AM
To: ncl-talk_at_ucar.edu
Subject: working with text extent

Hello,

I am running into problems with title strings that are too long (they
get truncated by the side margins on each end) and am seeking a way to
dynamically adjust my textsize so that the resulting title will fit on
the pagewidth. These titles are done in two different plot settings:
associated with panel plots and as text I'm adding myself in NDC
coordinates. I create lots of plots and the title text depends on the
particular plot. I'm picturing iteratively adjusting the text height
until my title text fits, or possibly just rescaling a text object to
make it fit. Either way, I'm not at all clear how to proceed. For
example, I wonder whether objects can be deleted after creation but
before the draw is done? Not sure this would help but it seems like one
possible approach (create, check size, delete if too big, try again...).

I see txPosXF and txPosYF resources for position but nothing directly
reflecting height/width of the text object.

Hope this is clear and thanks in advance for any advice, etc.,

Dave Reusch

-- 
517 Deike Building
Earth & Environmental Systems Institute
Penn State University
University Park, PA 16802
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Dec 16 2008 - 12:28:44 MST

This archive was generated by hypermail 2.2.0 : Sat Dec 20 2008 - 12:36:21 MST