Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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



 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690