I know that ListAnimate perform well. But if we have parameters in the formula.

For example:

EuclideanDistance[{x, y}, {a, 0}] EuclideanDistance[{x, y}, {-a, 0}] == b^2
, {x, -5, 5}, {y, -5, 5}]
, {{b, 1}, 0, 5}, {{a, 1}, 0, 5}]

How to make the performance better?

Add explanations:

enter image description here

it's clear that when I drag the slider, the curve doesn't smooth. So is there any method to make it smooth?

  • 2
    $\begingroup$ Which version are you using as this is instantly responsive in 12.0? As an aside, you do not need Visualization`Core` prefix on ContourPlot. Just ContourPlot will do. $\endgroup$ – Edmund Feb 7 at 22:31
  • $\begingroup$ @Edmund 11.3 , since I found that undocumented function is faster in some way. $\endgroup$ – wuyudi Feb 8 at 4:20
  • $\begingroup$ Just tried it in 11.3 and it is also instantly responsive. You could try restarting your kernel. As it stands the issue is not reproducible. $\endgroup$ – Edmund Feb 8 at 11:44
  • 1
    $\begingroup$ tried the option PerformanceGoal -> "Quality" in ContourPlot? $\endgroup$ – kglr Feb 8 at 14:46
  • 1
    $\begingroup$ This is by design. Read up on Manipulate. Start with reference.wolfram.com/language/tutorial/… and look for ControlActive. $\endgroup$ – Michael E2 Feb 9 at 1:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.