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 #89890 is a reply to message #89889] Wed, 17 December 2014 13:00 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
rlord@ska.ac.za writes:

> Thank you for the quick reply. I think I need to first learn a bit about writing object-oriented code in IDL to fully understand your answer. But at least you confirmed there is no easy way to do this.
>
> I will probably start by making a copy of cgZPlot, and call it, say, ShareZoom, which will then accept two arrays for the two y-axes (the x-axis is the same for both plots). This, for me, seems to be the easiest way for ShareZoom to "know" about both plots. Updating the DrawPlot method should hopefully be fairly easy.

I estimate this should take you about 10 minutes, max! Not including
learning about objects, of course. But, once you do, you will understand
why this is so incredible easy to do.

> PS: cgZPlot is really a fantastic tool!

Thank you. :-)

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: Wed Oct 08 19:33:51 PDT 2025

Total time taken to generate the page: 0.00405 seconds