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

Home » Public Forums » archive » PLOTS and color
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
PLOTS and color [message #3317] Wed, 14 December 1994 15:27
cavanaug is currently offline  cavanaug
Messages: 18
Registered: December 1994
Junior Member
Does anyone know how to get the PLOTS routine to use a given color? Specifically, when
the device is in xor drawing mode?

Here's what I'm doing :

0) Defining and loading (via TVLCT) my red, green, blue values.
1) Creating a draw widget and using PLOT and OPLOT to plot my data (in various colors).
This widget has a button attached to it that toggles linking/unlinking the symbols drawn by
OPLOT.
2) When the link/unlink message is received, the device (X Windows display) is set to xor mode
(of course first saving the current graphics function), and then PLOTS is called to draw
lines from point to point (not all the points are to be connected). Here is where I have
problems getting PLOTS to use the color I want. I've tried to find a pattern to its
behavior, but to no avail.


Any help would be greatly appreciated.

Charles Cavanaugh
--

Charles Cavanaugh National Center for Atmospheric Research
cavanaug@ncar.ucar.edu Boulder, CO, USA
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: plotting cubes
Next Topic: Keystroke events to a draw widget?

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

Current Time: Thu Oct 09 21:22:09 PDT 2025

Total time taken to generate the page: 1.04142 seconds