Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a program using Manipulate. The program given certain values will compute some values. I want these values to appear in a 3D list plot but the problem I am facing is that when the user changes the parameter the previous plot will disappear.

How can I keep the previous points plotted even after the user changes the values of x or y with the Manipulators? I want the user to see all the points.

Here is an example:

Manipulate[ListPointPlot3D[{{0, 0, 0}, {x + y, x, y/2}}], 
  {x,  0, 10}, 
  {y, 0, 5}]

I want the plot to show all the points where the user changes x and y not just the latest.

share|improve this question
Belated welcome to Mathematica.SE! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Read the faq! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! – Michael E2 Mar 1 '15 at 14:34
up vote 2 down vote accepted

You could simply maintain a list of points to which you append the latest values:

data = {{0, 0, 0}};
 ListPointPlot3D[AppendTo[data, {x + y, x, y/2}]], 
 {x, 0, 10}, {y, 0, 5}, TrackedSymbols :> {x, y}]

enter image description here

share|improve this answer
Thank you very much – Mr. Pi May 24 '14 at 16:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.