MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: controllers in manipulate


Manipulate[f[x, y],
 {{x, 0.}, -10., 10., 0.01,
  Appearance -> "Labeled"},
 {{y, 3}, 0, 6, 1,
  ControlType -> RadioButton}]


Manipulate[f[x, y],
 {{x, 0.}, -10., 10., 0.01,
  Appearance -> "Labeled"},
 {{y, 3}, Range[0, 6],
  ControlType -> SetterBar}]


For larger number of integer values:


Manipulate[f[x, y],
 {{x, 0.}, -10., 10., 0.01,
  Appearance -> "Labeled"},
 {{y, 10}, Range[0, 20]}]


Manipulate[f[x, y],
 {{x, 0.}, -10., 10., 0.01,
  Appearance -> "Labeled"},
 {{y, 0}, -20, 20, 1,
  Appearance -> "Labeled"}]



Bob Hanlon




On Sun, Oct 20, 2013 at 11:38 PM, Francisco Gutierrez <
fgutiers2002 at yahoo.com> wrote:

>
> Dear Group:
>
> I have a Manipulate[f, ...], where f is a function of 2 variables, x and y
>
> x can get any real value, but y can only be an integer. How can I put the
> controls so that the control of x is a slider and the control of
> y is a radio button?
>
> Thanks!
>
>




  • Prev by Date: Re: controllers in manipulate
  • Next by Date: Re: controllers in manipulate
  • Previous by thread: Re: controllers in manipulate
  • Next by thread: Re: controllers in manipulate