We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I'm a newbie, I'm trying to change the example in "grafica". In the "multipoint" example the "Plot2" can be deleted and rewritten with key pressed. Is it possible to save the first graph and draw the second one? Is it also possible to write down the points in a table? Thank you
Answers
sorry for example of multy plots
do not reset but new chart
Is this example available in the grafica's website? Can you provide a link to it? Or even better, provide an MCVE showing your problem.
Kf
@brugola -- The Processing(Java) grafica library doesn't come with example called "multipoint" -- it has MovingPoints, MultiplePanels, and MultiplePlots. Are you talking about one of these?
Edit -- oh, that's what you meant by multy plots.
Okay. So your question is about the example: MultiplePlots
Here is the code:
And you want to save the points from plot2 before you replace them with a new GPointsArray -- is that right?
I think you could either write those points into a Table at the same time you are adding them to plot2, or you could get the GPointsArray from plot2 and loop through it to retrieve the values, writing each into a Table. All the methods of GPlot and GPointsArray are here....
I agree with @kfrajer that a simple sketch demonstrating what you are trying to do would help forum members trying to give you better advice.
Hello. Thank you for your valuable help. what I'd like to do is draw the graph and at the same time fill in the table with each mouse pressed. When I press the "z" key, start drawing the graph again (without deleting the first track) and compiling a new table. Or save the file of the first graph and its table, to recall only the graph line and the table and make it appear on a new sketch. Being a young novice kid with processing all your help for me is very welcome. Thank you!!!
saving the points of the first table to be able to recall and draw on a chart?