MathGroup Archive 2009

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

Search the Archive

Re: Manipulate, Opacity, slow down

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99827] Re: Manipulate, Opacity, slow down
  • From: Alexei Boulbitch <Alexei.Boulbitch at iee.lu>
  • Date: Fri, 15 May 2009 04:21:45 -0400 (EDT)

Hi, Janos,

Without the code it is not quite clear, why  the 2D parametric  plot is 
noticeably slowed down in your case.  I met such situations only in 3D 
cases. Probably your function is too heavy for whatever reason.
Anyway, if you need the result for a presentation (for what else?), you 
may be quite sutisfied with timing of the discrete Manipulate version, 
instead of the continuous one, like the following:

f[a_] := ParametricPlot[{Sin[a u], Cos[u/a]}, {u, 0, 4 Pi}]
Manipulate[f[a], {a, 1, 5, 0.5}]

If this is still too slow in your case, try the FlipView like below: 

tab = Table[
   ParametricPlot[{Sin[a u], Cos[u/a]}, {u, 0, 4 Pi}], {a, 1, 5, 0.5}];
FlipView[tab]

This must be fast.

Alexei


n May 12, 11:43 am, janos <janostothmeis... at gmail.com> wrote:
> I wonder if you can give me some hints without a code.
> I have a program using Manipulate[ParametricPlot[f[a]]].
> 1. If I define outside the function f used in ParametricPlot, and then
> insert the function name into ParametricPlot, then the program slows
> down extremely compared to the version when the formula of the
> function is inserted.
> 2. If I add Opacity to the Directives, again the timing increases
> tremendously.
>
> If you think you could help seeing the (long) code I'll be ready to
> show it.
>
> Thank you,
>
> J=E1nos


 

-- 
Alexei Boulbitch, Dr., habil.
Senior Scientist

IEE S.A.
ZAE Weiergewan
11, rue Edmond Reuter
L-5326 Contern
Luxembourg

Phone: +352 2454 2566
Fax:   +352 2454 3566

Website: www.iee.lu

This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you are not the intended recipient and have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal from your system. Thank you for your co-operation.




  • Prev by Date: Re: number dot (with space)
  • Next by Date: Re: Re: Introducing the Wolfram Mathematica Tutorial
  • Previous by thread: Re: Manipulate, Opacity, slow down
  • Next by thread: Focus ring for controls