comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Multicolored dashed lines???
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Multicolored dashed lines??? [message #45550 is a reply to message #45549] Wed, 21 September 2005 14:03 Go to previous message
savoie is currently offline  savoie
Messages: 68
Registered: September 1996
Member
"Haje Korth" <haje.korth@nospam.jhuapl.edu> writes:

> Hi, Before I start coding something really crappy, I wanted to ask if
> anyone has a routine that can plot a multicolored dashed line (e.g.,
> black-white)? The purpose is to have a line that can be seen against
> arbitrary background colors, such as used in a color spectrogram.

Would this work?


x = randomn( 3, 333 )

plot, x, BACKGROUND = fsc_color( 'red', 1 ), $
COLOR = fsc_color( 'blue', 2 )

oplot, [ 0, 1000 ], [ 0, 0 ], $
COLOR = fsc_color( 'black', 3 )

oplot, [ 0, 1000 ], [ 0, 0 ], $
COLOR = fsc_color( 'white', 3 ), LINESTYLE = 2



See dfanning.com for fsc_color.pro

Matt

--
Matthew Savoie - Scientific Programmer
National Snow and Ice Data Center
(303) 735-0785 http://nsidc.org
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Resizing arrays
Next Topic: Spin button widget??

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue Dec 02 16:07:11 PST 2025

Total time taken to generate the page: 2.08899 seconds