MathGroup Archive 2009

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

Search the Archive

Re: Plotting in a dynamic environment.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99661] Re: Plotting in a dynamic environment.
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sun, 10 May 2009 05:18:29 -0400 (EDT)
  • References: <gu3at0$t8t$1@smc.vnet.net>

Hi,

myfun = x^2 + 3 t x;
t = 1;
Plot[myfun, {x, 0, 2}]
Clear[t]
Manipulate[
  Evaluate[myfun /. {x -> \[ScriptX], t -> \[Tau]}], {\[ScriptX], 1,
   2}, {{\[Tau], 1}, 0, 10}]
Manipulate[
  Plot[Evaluate[myfun /. {x -> \[ScriptX], t -> \[Tau]}], {\[ScriptX],
    1, 2}], {{\[Tau], 1}, 0, 10}]

?

And a x in Manipulate[] is not a x
as to see from

Manipulate[{Hold[x], x}, {x, 0, 1}]

Regards
   Jens


mgoic wrote:
> Hi everyone,
> 
> I am having problems when trying to plot an expression in a Dynamic
> model using manipulate tool. For example, in this simple code I can
> plot the function (first plot), I can evaluate its value in a
> manipulate environment (second plot), but when trying to plot in a
> dynamic environment I just get empty axis (third plot).
> 
> myfun = x^2 + 3 t x ;
> t = 1;
> Plot[myfun, {x, 0, 2}]
> Clear[t]
> Manipulate[Evaluate[myfun], {x, 1, 2}, {{t, 1}, 0, 10}]
> Manipulate[Plot[Evaluate[myfun], {x, 1, 2}], {{t, 1}, 0, 10}]
> 
> Any idea of what I am doing wrong? I will really appreciate any
> guidance.
> 
> Regards,
> Marcel Goic
> 


  • Prev by Date: Re: a' vs a and a vs a' looks different in streamplot
  • Next by Date: Re: Manipulate Issue - resend with code
  • Previous by thread: Re: Plotting in a dynamic environment.
  • Next by thread: Re: Plotting in a dynamic environment.