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

Home » Public Forums » archive » adjustable sliders
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
adjustable sliders [message #13398] Thu, 05 November 1998 00:00
seanosea is currently offline  seanosea
Messages: 6
Registered: November 1998
Junior Member
Dia daoibh!

I don't know if anyone has done this before, but here goes. I've used this
widget for quite a while, found it to be useful when the data varied over a
broad range of scales, and so thought I'd share it with you helpful folks.

Here's a tweaking of the beloved cw_fslider. <a
href="http://w3.pppl.gov/~sstrasbu/cw_fsl_adj.html">cw_fsl_adj.pro</a> allows
one to adjust the lower and upper ranges on-the-fly by two methods.

First, assuming (of course) that the EDIT keyword is set, one can type <3.34
in the numeric field, and the upper range will be set to 3.34; >2.14 works
similarly.

Second, typing *2.8, with 2.8 in the current range, will cause the slider
range to be centered around 2.8 and zoomed in by a factor of 4. **2.8 will
zoom in by 8; ***2.8 by 16; etc. Typing /2.8 zooms out; //2.8 similarly.

In addition, initializing the slider with a requested VALUE=3.2 above the
MAX=3.0 no longer causes an error; MAX is set to VALUE if this happens.
It was sometimes a pain to write MAX=var1>var2, VAL=var2 if one didn't know
before runtime whether var1 or 2 was going to be larger.

I've found these to be quite useful. But, then again, I have very strange
interests. It's not exactly an example of great programming; I welcome
comments and debuggings.

The location of the program is, again, from
http://w3.pppl.gov/~sstrasbu/cw_fsl_adj.html
The actual program is at cw_fsl_adj.pro.

Thanks to everyone!
Go raibh m�le maith agaibh as bhur gc�namh!
Sean O'Sea

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Two x axes per plot
Next Topic: IDL 5.2 reviews?

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

Current Time: Wed Oct 08 13:38:24 PDT 2025

Total time taken to generate the page: 0.00604 seconds