Re: How to display parameter in animation?
- To: mathgroup at smc.vnet.net
- Subject: [mg87206] Re: [mg87192] How to display parameter in animation?
- From: Curtis Osterhoudt <cfo at lanl.gov>
- Date: Fri, 4 Apr 2008 02:57:08 -0500 (EST)
- Organization: LANL
- References: <200804031018.FAA26138@smc.vnet.net>
- Reply-to: cfo at lanl.gov
One way is to use Epilog to stick text right on the plot:
Animate[Plot[Sin[x + a], {x, 0, 10},
Epilog -> Text["a = " <> ToString[a], Scaled[{0.8, 0.8}]]],
{a, 0, 5}
]
Hope that helps!
C.O.
On Thursday 03 April 2008 04:18:26 Holobundle wrote:
> How do I display the parameter in an animation?
>
> For example, I would like to see the values of the parameter 'a' in the
> following example from the mathematica documentation:
>
> Animate[Plot[Sin[x+a],{x,0,10}],{a,0,5}]
>
> In particular, if I pause the animation I would like to see what the value
> of the parameter is.
--
==========================================================
Curtis Osterhoudt
cfo at remove_this.lanl.and_this.gov
PGP Key ID: 0x4DCA2A10
Please avoid sending me Word or PowerPoint attachments
See http://www.gnu.org/philosophy/no-word-attachments.html
==========================================================
- References:
- How to display parameter in animation?
- From: Holobundle <cowen@math.buffalo.edu>
- How to display parameter in animation?