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

Home » Public Forums » archive » Re: How should I mark annotations in multi plot window
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
Re: How should I mark annotations in multi plot window [message #46453] Wed, 23 November 2005 22:00
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Naresh writes:

> I have 16 subplots in a graphics widget. In that some different
> types of waveforms are present. My job is to mark the start and end
> point of waveform and high-light that duration of signal. To complicate
> further, each waveform should have different color coding. Now where I
> am exactly facing the problem is in highlighting and color coding. I
> can find out start and end point of waveform but filling that box with
> color is becoming problem. More over it is a multiplot graphics so some
> time half the waveform is one subplot and second half will be in next
> subplot. I tried to use graphics xor mode but I have not got the
> desired results.
> Do you guys have any idea.

If you can find the end points of your box, you must
be in the right data coordinate place. You can find
the right data value close to your box end points by
using VALUE_LOCATE. You want to draw all the points
between the two you locate in a different color.
I would just plot with PLOTS and the COLOR keyword
set to the color you want.

The problem is really just at the end points.
Depending on how densely sampled your data points are,
your box end points may not match up exactly with your data points.
In that case, you may have to interpolate between the point
you find with VALUE_LOCATE and the next closest point
in the direction of the box end point. Thus, the vector
you plot with PLOTS may have one (or two) additional points
at either end that will correspond with the actual box
end points.

(Turns out this was *another* program we wrote last week.
Or something very close to it. Boy, we were really on a roll!)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How should I mark annotations in multi plot window
Next Topic: Re: Dynamically adding and removing widgets

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

Current Time: Wed Oct 08 17:34:17 PDT 2025

Total time taken to generate the page: 0.00537 seconds