Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Real time data graphs.

by BrowserUk (Pope)
on Oct 07, 2006 at 20:49 UTC ( #576902=note: print w/ replies, xml ) Need Help??


in reply to Real time data graphs.

If I use Tk::Canvas and create boxes or dots for each aquired data point, soon I'll fill all the memory

How about using a line item, and use the itemconfigure method to add new points to the line? That way you would only use one entity and get a line graph of the temp against time.

GD was also tried, but we need more functionality for the generated graphics.

What beside plotting points did you need for your graph that GD didn't provide?

If GD really cannot provide what you need for legends, axis and stuff (though I cannot see why it wouldn't), the you might consider positioning the Tk::Photo with just the points plotted over the top of a tk::Canvas on which you draws the axis, legends etc.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re: Real time data graphs.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://576902]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-09-20 02:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (151 votes), past polls