Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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

1 Answer 1

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.