MathGroup Archive 2009

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

Search the Archive

Custom label for a slider in Manipulate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg96328] Custom label for a slider in Manipulate
  • From: Damon <damonwischik at gmail.com>
  • Date: Wed, 11 Feb 2009 05:25:00 -0500 (EST)

I have a simple Manipulate,

Manipulate[
 Plot[Sqrt[2]/(RTT*Sqrt[p]), {p, .001, .1},
  PlotRange -> {{0, .1}, {0, 150}}],
 {{RTT, .1, "round trip time"}, .03, .25, Appearance -> "Labeled"}
 ]

But I want the slider that controls the RTT variable to have a
prettier appearance. I would like it to display the value to the right
of the control, but instead of a plain number I want it to show
  ToString[Round[1000 RTT]] <> "ms"

How can I achieve this?

Thanks,
Damon.


  • Prev by Date: switching axes in Plot?
  • Next by Date: Re: linear regression with errors in both variables
  • Previous by thread: Re: switching axes in Plot?
  • Next by thread: Re: Custom label for a slider in Manipulate