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

Home » Public Forums » archive » Synchronizing xrange of cgZPlot with another plot
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: Synchronizing xrange of cgZPlot with another plot [message #89887 is a reply to message #89886] Wed, 17 December 2014 12:31 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
rlord@ska.ac.za writes:

> I am trying to plot a share price (for example) in one draw widget using cgZPlot, and have a volume plot (for example) in another draw widget below the cgZPlot figure using cgPlot.
>
> However, as I zoom/pan the cgZPlot figure, I want the other plot's xrange to stay in sync.
>
> Any ideas?

Write your own "sharezoom" object from a subclassed cgZPlot object. Have
it "know" about the volume plot. Override the DrawPlot method of your
new object to update both plots.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Matlab "strel" function - is there an IDL equivalent?
Next Topic: reading binary file with READ_BINARY

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

Current Time: Fri Oct 10 00:06:46 PDT 2025

Total time taken to generate the page: 0.55699 seconds