Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #3123 > unrolled thread

Nudge? (Coarse and Fine Manipulation)

Started byAES <siegman@stanford.edu>
First post2011-06-16 08:01 +0000
Last post2011-06-17 04:10 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Nudge?  (Coarse and Fine Manipulation) AES <siegman@stanford.edu> - 2011-06-16 08:01 +0000
    Re: Nudge?  (Coarse and Fine Manipulation) Yves Klett <yves.klett@googlemail.com> - 2011-06-16 10:24 +0000
    Re: Nudge?  (Coarse and Fine Manipulation) "Nasser M. Abbasi" <nma@12000.org> - 2011-06-17 04:10 +0000

#3123 — Nudge? (Coarse and Fine Manipulation)

FromAES <siegman@stanford.edu>
Date2011-06-16 08:01 +0000
SubjectNudge? (Coarse and Fine Manipulation)
Message-ID<itcd9j$cvt$1@smc.vnet.net>
Suppose you want to have a slider control that does coarse adjustment of 
an input variable in a Manipulate (range 0 to 150, let's say), and then 
a much finer adjustment button or slider you can use to nudge that value 
up or down by a much smaller amount (steps of 0.001, let's say) near any 
critical transition points.

If the input variable to be controlled is x, I suppose one could have a 
coarse slider to set the value of x0 in the range 0 <= x0 <=150  and a 
fine slider to set x1 in the range  -0.001 <= x1 <= +0.001; and then have
x = x0+x1 as the first statement in the active part of the Manipulate.

Other better ways to do this?

[toc] | [next] | [standalone]


#3129

FromYves Klett <yves.klett@googlemail.com>
Date2011-06-16 10:24 +0000
Message-ID<itclk5$gtk$1@smc.vnet.net>
In reply to#3123
By pressing Alt (Windows, dunno about Mac) while pulling a slider, you
get finer control over the input value.

Regards,
Yves

Am 16.06.2011 10:01, schrieb AES:
> Suppose you want to have a slider control that does coarse adjustment of 
> an input variable in a Manipulate (range 0 to 150, let's say), and then 
> a much finer adjustment button or slider you can use to nudge that value 
> up or down by a much smaller amount (steps of 0.001, let's say) near any 
> critical transition points.
> 
> If the input variable to be controlled is x, I suppose one could have a 
> coarse slider to set the value of x0 in the range 0 <= x0 <=150  and a 
> fine slider to set x1 in the range  -0.001 <= x1 <= +0.001; and then have
> x = x0+x1 as the first statement in the active part of the Manipulate.
> 
> Other better ways to do this?
> 

[toc] | [prev] | [next] | [standalone]


#3150

From"Nasser M. Abbasi" <nma@12000.org>
Date2011-06-17 04:10 +0000
Message-ID<itek42$s77$1@smc.vnet.net>
In reply to#3123
On 6/16/2011 1:01 AM, AES wrote:
> Suppose you want to have a slider control that does coarse adjustment of
> an input variable in a Manipulate (range 0 to 150, let's say), and then
> a much finer adjustment button or slider you can use to nudge that value
> up or down by a much smaller amount (steps of 0.001, let's say) near any
> critical transition points.
>
> If the input variable to be controlled is x, I suppose one could have a
> coarse slider to set the value of x0 in the range 0<= x0<=150  and a
> fine slider to set x1 in the range  -0.001<= x1<= +0.001; and then have
> x = x0+x1 as the first statement in the active part of the Manipulate.
>
> Other better ways to do this?
>

The typical solution to this is to have the standard slider, but
with clickable body. like this:


<-------||----------------->
<-------||----------------->

when moving the slider (by dragging the bar inside it or by clicking
on the end arrows) will cause the control variable value to change
by a fine amount, say 1%. This is how the Mathematica slider works
(but it does not have the side arrows, only the bar in the middle).

But the slider should support clicking on any side of the slider
bar, and then the bar will move by the granular amount, say 10%
to the left or to the right.

These 1% and 10% can be configurable ofcourse.

It would be nice if next version of Mathematica will have such
a control.  Holding ALT and sliding it, does not really give
the needed control as the above method. The above method
I think is a standard way to do it, at least on 2 other systems
I know of now.

--Nasser

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web