MathGroup Archive 2013

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

Search the Archive

Re: Preventing a plot used as background from updating

  • To: mathgroup at smc.vnet.net
  • Subject: [mg130725] Re: Preventing a plot used as background from updating
  • From: Fred Simons <f.h.simons at tue.nl>
  • Date: Mon, 6 May 2013 04:24:33 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net
  • References: <20130504071821.6D69C6A12@smc.vnet.net>

Brent,

You could used nested Dynamics, something like Dynamic[ 
Graphics[{contourplot, Dynamic[other stuff]].

Here is a toy  example demonstrating the principle. Updating of the 
variable a  is time consuming, while updating of b is fast. The variable 
a is not updated when only the value of b changes.

a = RandomReal[]; b = RandomReal[];
Column[{ Dynamic[{Pause[2]; a, Dynamic[b]}],
    Button["a", a = RandomReal[]],
   Button["b", b = RandomReal[]]
   }]

Fred Simons
Eindhoven University of Technology

Op 4-5-2013 9:18, Brentt schreef:
> Hi, I'm trying to make an interactive visualization that uses a contour
> plot as background. The contour plot takes a while to process, and I don't
> want it to be refreshed during dynamic evaluation.
>
> When I try and use the "Refresh[ cntrPlot, None]" the other parts of
> dynamic don't run.
>
> I've even tried to rasterize the graphic, but then the coordinates don't
> match up.
>
> Any ideas on how one might go about doing  this?
>
>
>
>
> -----
> Geen virus gevonden in dit bericht.
> Gecontroleerd door AVG - www.avg.com
> Versie: 2013.0.3272 / Virusdatabase: 3162/6295 - datum van uitgifte: 05/03/13
>
>




  • Prev by Date: Listable Attribute of Pure Function that returns a matrix
  • Next by Date: How Random works?
  • Previous by thread: Preventing a plot used as background from updating in dynamic
  • Next by thread: Minimize Headscratcher