Re: To display a line


Romaric BENECH wrote:
> I want to display a line between two points (1.0,2.0 ; 3.0,4.0).
> How can i do this ?

We have created the VisAD-Jython connection to make things like this easy.

Using VisAD-Jython, you would simply:

display.drawLine( ( (1,3),(2,4)))

where 'display' is the display object you are using.

There are also keyword parameters for setting the color, line style, width, and a specialized MathType if needed (default is whatever is mapped first to the axes).

Tom Whittaker
University of Wisconsin-Madison

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