in reply to Tk::Canvas->createLine max?

Hi, I think you are just running into an internal Tk wall, where it cannot handle updating too many objects. My only suggestion is to consolidate your points into mini-bezier line segments, to reduce the number of canvas objects being tracked. I used this approach in Tk Realtime data aquisition where I break every 1000 points into a new bezier segment. This greatly reduces Tk's internal overhead, by reducing it's internal object count by 1000.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku

Replies are listed 'Best First'.
Re^2: Tk::Canvas->createLine max?
by stead (Initiate) on Aug 11, 2010 at 15:53 UTC

    Thanks for the reply! This is a good plan. I was thinking that one answer might be to break up the lines, but I was uncertain how to proceed beyond just splitting the lines up into segments and plotting them adjacent to each other. I took a quick look at the script you referred me to, and it bears similarity to what I am trying to do. I have a database of time-series data from instrumentation, and I am just trying to get the data displayed. Sometimes, these series are quite long and that was where I was getting into trouble. If it is an internal Tk wall, then splitting up the lines is really the only option. Besides, reducing internal overhead would be a very good thing, since my actual script, as it stands, performs kinda slow.