Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Flashing Graphs With Manipulate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88705] Re: Flashing Graphs With Manipulate
  • From: David Reiss <dbreiss at gmail.com>
  • Date: Tue, 13 May 2008 07:10:09 -0400 (EDT)
  • References: <g0905j$krf$1@smc.vnet.net>

This appears to be a formatting issue with the PlotLabel.  One quick
way to make it go away I found is to wrap a TextCell around func:

PlotLabel -> TextCell[func]

I  didn't test this much, but it seems to fix your issue...

--David


On May 12, 4:46 am, bobbail... at frii.com wrote:
> If the coefficient of x is < 0 and the constant term is > 0,
> this graph flashes as you drag the sliders.
>
> Why?  NSolve can't be taking that much longer in this case.
>
> What can be done to prevent the flashing?
>
> Manipulate[
>  With[ { func = b x + c },
>   Module[ { rts },
>    rts = NSolve[func == 0, x];
>    ListPlot[
>    {Re[x], Im[x]} /. rts,
>    PlotStyle -> PointSize[0.03],
>    PlotRange -> {{-10, 10}, {-10, 10}}, ImageSize -> {300, 300},
>    AspectRatio -> 1, PlotLabel -> func]
>   ]
>  ],
>   { {b, -1, "coefficient of x"}, -9, 9, .1, Appearance -> "Labeled"},
>   { {c, 3, "constant term"}, -10, 10, .1, Appearance -> "Labeled"}
> ]



  • Prev by Date: Re: Parameter conditions
  • Next by Date: Re: Flashing Graphs With Manipulate
  • Previous by thread: Re: Flashing Graphs With Manipulate
  • Next by thread: Null Return for a Module