Re: How I construct a Reference with diferente lineWidth

> For each line, you will need a DataReferenceImpl, and then create a
> ConstantMap[] for Display.RGB and Display.LineWidth, and then use:
> 
>     Display.addReference(DataReferenceImpl, ConstantMap[]);
> 
> when you add each line to the display.  In Jython, you might say
> something like:
> 
>    cm = makeColorMap('red') + makeLineStyleMap('solid',3))
>    addData('lines', thisline, display, cm)
> 
> (for points in 'thisline', and Display 'display', and a solid red line
> of width 3)
> 
> tom
> 
> --
> Tom Whittaker
> University of Wisconsin-Madison
> Space Science and Engineering Center
> Cooperative Institute for Meteorological Satellite Studies
> Telephone/VoiceMail:  608.262.2759

Hi Tom.

Thanks foy your interest, but we were looking for a way to
create a single reference with lines of diferent width and color.
Can it be done?

Olver



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