Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: Manipulate Issue - resend with code

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99638] Re: [mg99610] Manipulate Issue - resend with code
  • From: John Fultz <jfultz at wolfram.com>
  • Date: Sun, 10 May 2009 05:14:14 -0400 (EDT)
  • Reply-to: jfultz at wolfram.com

On Sat, 9 May 2009 03:20:59 -0400 (EDT), Kevin J. McCann wrote:
> Below is the "Neat Example" from the Manipulate Help. My issue is that
> when one of the charges is dragged around, the contour plot is really
> crummy, i.e. very low res, until you take your finger off the mouse.
> Similarly when the manipulate is allowed to run movie-style. Any ideas
> about how to get this to "look nice"?
>
> Thanks,
>
> Kevin
>
>
> Manipulate[
> ContourPlot[
> q1/Norm[{x, y} - p[[1]]] + q2/Norm[{x, y} - p[[2]]], {x, -2,
> 2}, {y, -2, 2}, Contours -> 10], {{q1, -1}, -3, 3}, {{q2, 1}, -3,
> 3}, {{p, {{-1, 0}, {1, 0}}}, {-1, -1}, {1, 1}, Locator},
> Deployed -> True]

This is done to speed up the Manipulate.  It's controlled by the
PerformanceGoal option, which is set to a variable that changes while
the Manipulate is being changed.  You can override the option manually.  E.g.,

Manipulate[
 ContourPlot[
  q1/Norm[{x, y} - p[[1]]] + q2/Norm[{x, y} - p[[2]]], {x, -2, 
   2}, {y, -2, 2}, Contours -> 10, 
  PerformanceGoal -> "Quality"], {{q1, -1}, -3, 3}, {{q2, 1}, -3, 
  3}, {{p, {{-1, 0}, {1, 0}}}, {-1, -1}, {1, 1}, Locator}, 
 Deployed -> True]

but the resulting Manipulate will be much slower.

Sincerely,
 
John Fultz
jfultz at wolfram.com
User Interface Group
Wolfram Research, Inc.




  • Prev by Date: Re: Plotting in a dynamic environment.
  • Next by Date: Re: Making a user interface
  • Previous by thread: Re: Manipulate Issue - resend with code
  • Next by thread: Plotting in a dynamic environment.