[Scilab-users] Spinner control with non-linear step?

amonmayr at laas.fr amonmayr at laas.fr
Mon Apr 4 08:55:49 CEST 2016


Le 03/31/2016 12:58 PM, scilab.20.browseruk at xoxy.net a écrit :
> Onward and upward thanks to Antoine.
>
> I'd like to have a spinner uicontrol where the steps are non-linear.
>
> Eg. logarithmic: -10^3, -10^2, -10^1, -10^0 -10^-1, -10-2, -10^-3, 0, 10^-3, 10^-2, 10^-1, 10^0, 10^1, 10^2, 10^3

Well, you can always use the "linear" values of the spinner as the input 
of a function to generate your non-linear function.
For example something like:
SpinnerValue=hspinner.value;
NLValue=10^Spinnervalue;

To get an exponential scale out of the Spinner value.

Is this something like that you want to achieve?

Antoine

>
> Is it possible to supply a function or vector for the SliderStep property?
>
> Any suggestions for a way to achieve teh goal?
>
> Thanks Buk.
>
> ____________________________________________________________
> Can't remember your password? Do you need a strong and secure password?
> Use Password manager! It stores your passwords & protects your account.
> Check it out at http://mysecurelogon.com/manager
>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>




More information about the users mailing list