We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › possible to generate a simple line graph
Page Index Toggle Pages: 1
possible to generate a simple line graph? (Read 2421 times)
possible to generate a simple line graph?
Mar 11th, 2010, 2:14pm
 
I have a small simulation that generates some data that varies with the time step.  I'd like to generate a line graph showing how the parameter of interest varies with time.  Is there an example anywhere that shows how to do something like this in Processing?
Re: possible to generate a simple line graph?
Reply #1 - Mar 11th, 2010, 2:27pm
 
i made something similar here. could be easily replaced with a line graph
http://processing.org/discourse/yabb2/num_1258658941.html

please post in the right section next time.
this belongs to "program"
Re: possible to generate a simple line graph?
Reply #2 - Mar 12th, 2010, 2:50am
 


Yes, I also have a function plotter in my portfolio

Greetings    Wink

http://www.openprocessing.org/visuals/?visualID=7262
Re: possible to generate a simple line graph?
Reply #3 - Mar 12th, 2010, 3:40am
 
nice one, but not really what he was looking for, right?
Re: possible to generate a simple line graph?
Reply #4 - Mar 15th, 2010, 7:24am
 


You are right!

I am sorry.....    Embarrassed

Re: possible to generate a simple line graph?
Reply #5 - Mar 15th, 2010, 8:28am
 
Why not?
The only difference is that Chrisir's data is computed with a function instead of computed ahead in some array/collection.
Re: possible to generate a simple line graph?
Reply #6 - Mar 15th, 2010, 10:37am
 
and how should he use this to visualize the change of his generated data during time?
Re: possible to generate a simple line graph?
Reply #7 - Mar 15th, 2010, 2:50pm
 
Well, classically t replaces x and data values are on y axis. As long as they are scalar.
Now, I don't know if Philip wants something static (as shown by Chrisir) or animated, which is, I see now, perhaps your interpretation.
Only him can tell... Smiley
Re: possible to generate a simple line graph?
Reply #8 - Mar 15th, 2010, 2:59pm
 
alright, we will wait until he comes back Smiley
Page Index Toggle Pages: 1