Group Abstract Group Abstract

Message Boards Message Boards

Manipulate function not showing smooth transition of a variable

Posted 3 years ago
POSTED BY: KRISHAN SHARMA
5 Replies
Posted 3 years ago

Add the PerformanceGoal -> "Quality" option to ContourPlot. That will prevent a low-resolution version from being displayed while the high-resolution version is being computed.

POSTED BY: Rohit Namjoshi
Posted 3 years ago
Posted 3 years ago

What is ManToGif?

POSTED BY: Rohit Namjoshi
Posted 3 years ago

I want to make a gif file of the plot. But the transition is not smooth Let me show you the example

man = Manipulate[ContourPlot[
    q1/Norm[{x, y} - p[[1]]] + q2/Norm[{x, y} - p[[2]]], {x, -2,
     2}, {y, -2, 2}, Contours -> 20, PlotRangePadding -> 0,
    Frame -> False, PlotPoints -> 40, ImageSize -> 230,
    ColorFunction -> "DarkRainbow"], {{q1, -1}, -3, 3}, {{q2, 2}, -3,
    3}, {{p, {{-1, 0}, {1, 0}}}, {-1, -1}, {1, 1}, Locator},
   Deployed -> True, FrameMargins -> 0];ManToGif[man, "charge", 2]

it shows very smooth transition of contour lines. The same i want in my case. I think mathematica is calculating the function every time and then showing the contour. Can't I save it for long step size as a gif or movie externally and operate.

POSTED BY: KRISHAN SHARMA

In addition to Rohit's suggestion, I would add ContinuousAction -> False to the Manipulate so it only updates when you release on a new value and does not try to continuously update (which it really can't do well).

Regards,

Neil

POSTED BY: Neil Singer
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard