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

Home » Public Forums » archive » Re: interactive color changes within a procedure
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: interactive color changes within a procedure [message #24084] Fri, 09 March 2001 06:54 Go to next message
John-David T. Smith is currently offline  John-David T. Smith
Messages: 384
Registered: January 2000
Senior Member
Craig Markwardt wrote:
> I still use round parenthesis for all my new programs!

For shame! Perpetuating a colossal syntax mistake.

COMPILE_OPT STRICTARR

jd
Re: interactive color changes within a procedure [message #24098 is a reply to message #24084] Thu, 08 March 2001 14:46 Go to previous messageGo to next message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Craig Markwardt (craigmnet@cow.physics.wisc.edu) writes:

> I still use round parenthesis for all my new programs! Thankfully, if
> the time ever comes for a switchover, there are some conversions
> programs available. [ The GSFC Astronomy Library I believe. ]

Oh, you poor man! Yes, hopefully there will be
some conversion programs available. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: interactive color changes within a procedure [message #24099 is a reply to message #24098] Thu, 08 March 2001 14:25 Go to previous messageGo to next message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
woodney@encke.astro.umd.edu (Laura Woodney) writes:
> I did say it was a vintage program! :) There are a few dinosaurs
> lurking in my IDL directories. If RSI ever decides to enforce things
> like the "new" distinction for () and [] - my whole world will start
> crashing.

I still use round parenthesis for all my new programs! Thankfully, if
the time ever comes for a switchover, there are some conversions
programs available. [ The GSFC Astronomy Library I believe. ]

Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: interactive color changes within a procedure [message #24105 is a reply to message #24099] Thu, 08 March 2001 10:58 Go to previous messageGo to next message
woodney is currently offline  woodney
Messages: 2
Registered: March 2001
Junior Member
davidf@dfanning.com (David Fanning) writes:
> Laura Woodney (woodney@encke.astro.umd.edu) writes:
>> Once upon a time you could place a call to XLoadCT inside a
>
> Well, once upon a LONG time ago. :-)

I did say it was a vintage program! :) There are a few dinosaurs
lurking in my IDL directories. If RSI ever decides to enforce things
like the "new" distinction for () and [] - my whole world will start
crashing.

> The problem, in a word, is that you need to use the BLOCK
> keyword, with either XLOADCT or XCOLORS. Having said this,
> I'm embarrassed to tell you that it doesn't work with XCOLORS. :-(
> At least not in the version you are using. You can download
> a version that *does* work here:
>
> http://www.dfanning.com/programs/xcolors.pro

It works great now - thanks!

-Laura

+------
|Dr. Laura M. Woodney
|Lowell Observatory
|Flagstaff, AZ 86001
|woodney@lowell.edu

--
+------
|Laura M. Woodney
|Lowell Observatory
1400 W. Mars Hill Rd. |
Flagstaff, AZ 86001 new e-mail: woodney@lowell.edu|
------+
Re: interactive color changes within a procedure [message #24119 is a reply to message #24105] Wed, 07 March 2001 19:52 Go to previous messageGo to next message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Laura Woodney (woodney@encke.astro.umd.edu) writes:

> Once upon a time you could place a call to XLoadCT inside a
> procedure so that when it ran, the color table widget would pop
> up, you could play with the color table of an image being displayed,
> then when you were done, you could close the widget and the program
> would then continue on its merry way.

Well, once upon a LONG time ago. :-)

> Then RSI messed with XLoadCT
> and this no longer worked: the color table widget would pop up, but
> the program would continue on it's merry way and not give you a chance
> to play with your color tables. Fortunately, the old version of
> XLoadCT still worked and could be placed in my path in front of the
> current RSI version.
>
> Now here's the latest twist. My new display is 24-bit color, so I
> want to start using David Fanning's XColor widget for playing with
> my color tables. However, I can't figure out how to stop and
> interactively play with the color stretch while inside a procedure.
> Since I now live in a 24-bit world, the old solution of using XLoadCT
> from vintage IDL doesn't work either.

The problem, in a word, is that you need to use the BLOCK
keyword, with either XLOADCT or XCOLORS. Having said this,
I'm embarrassed to tell you that it doesn't work with XCOLORS. :-(
At least not in the version you are using. You can download
a version that *does* work here:

http://www.dfanning.com/programs/xcolors.pro

To tell you the truth, I have never used XCOLORS with the
BLOCK keyword, and apparently never tested the keyword
after I wrote it. Sorry about that.

Cheers,

David

P.S. Let's just say I've never used the MODAL keyword
either, but I'm supremely confident it works as advertised. :-)

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: interactive color changes within a procedure [message #24172 is a reply to message #24084] Fri, 09 March 2001 14:51 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
JD Smith <jdsmith@astro.cornell.edu> writes:

> Craig Markwardt wrote:
>> I still use round parenthesis for all my new programs!
>
> For shame! Perpetuating a colossal syntax mistake.
>
> COMPILE_OPT STRICTARR

I prefer to call it "classic" syntax.

My putative reason was for compatibility with IDL 4, but this
reasoning is slowly dissipating now.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Strings as variables?
Next Topic: interactive color changes within a procedure

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

Current Time: Fri Oct 10 16:31:59 PDT 2025

Total time taken to generate the page: 4.07943 seconds