MathGroup Archive 2008

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

Search the Archive

Re: How to display parameter in animation?


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
==========================================================


  • Prev by Date: Re: What is @@@?
  • Next by Date: Re: How to put text on a curved surface?
  • Previous by thread: How to display parameter in animation?
  • Next by thread: Re: How to display parameter in animation?