Re: Write vertical text

In Python:

from subs import *
m = makeMaps('x','x','y','y')
d = makeDisplay2D(m)
d.drawString('my string', [0, 0], up=[-.1, 0., 0.], base=[0., .1, 0.] )
d.showDisplay()

This illustrates the use of the 'up' and 'base' parameters that is applicable to the PlotText.render_label() as well. The beauty of Python & VisAD is that it allows you to prototype very quickly.

Hope that helps.

tom


Romaric BENECH wrote:

Is it possible to write a vertical text (a text with 90° rotation) in 2D Display with Visad in java ?
Is there example somewhere with how to write a text and make it vertical ?
Thanks your help. Romaric


------------------------------------------------------------------------
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail <http://fr.mail.yahoo.com>

--
Tom Whittaker (tomw@xxxxxxxxxxxxx)
University of Wisconsin-Madison
Space Science and Engineering Center
Cooperative Institute for Meteorological Satellite Studies
Phone/VoiceMail: 608.262.2759


  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: