Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://576902]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2018-01-22 18:28 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (235 votes). Check out past polls.