Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to remove Plotchart data from memory?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Marcos  
View profile  
 More options Feb 8, 8:29 am
Newsgroups: comp.lang.tcl
From: Marcos <c2o.pro...@gmail.com>
Date: Wed, 8 Feb 2012 05:29:42 -0800 (PST)
Local: Wed, Feb 8 2012 8:29 am
Subject: How to remove Plotchart data from memory?
Dear,

I want to use Plotchart to plot charts for a data acquisition system
running in the laboratory for several days.

I am afraid that the great volume of data in memory can cause problems
of slowness.

How do I remove the memory data created by plotchart without having to
restart the application.

The command

package forget Plotchart

don't remove the commands of Plotchart

and after the command

namespace delete ::Plotchart

I can not load the package again with

package require Plotchart

Any suggestions?

Thanks,
Marcos


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DrS  
View profile  
 More options Feb 8, 9:18 am
Newsgroups: comp.lang.tcl
From: DrS <drscr...@gmail.com>
Date: Wed, 08 Feb 2012 09:18:21 -0500
Local: Wed, Feb 8 2012 9:18 am
Subject: Re: How to remove Plotchart data from memory?
On 2/8/2012 8:29 AM, Marcos wrote:

> Dear,

> I want to use Plotchart to plot charts for a data acquisition system
> running in the laboratory for several days.

> I am afraid that the great volume of data in memory can cause problems
> of slowness.

Will your chart also keep getting bigger?  Probably not.  In that case,
you'd probably only want the latest x number of data points. This should
be easy to manage and should not amount to too much memory.  With each
new measurement, you just keep a list of the most recent x number of
points to plot.

Or, depending on the specifics, you can display the summary data and not
each individual measurement.  Again, your vector size is limited.

DrS


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjen Markus  
View profile  
 More options Feb 10, 7:36 am
Newsgroups: comp.lang.tcl
From: Arjen Markus <arjen.markus...@gmail.com>
Date: Fri, 10 Feb 2012 04:36:00 -0800 (PST)
Subject: Re: How to remove Plotchart data from memory?
On 8 feb, 14:29, Marcos <c2o.pro...@gmail.com> wrote:

In addition to DrS's suggestions, I can add (as author of Plotchart)
that Plotchart itself
does not keep the data in memory - the application is responsible for
that.
A source of memory consumption could be the canvas. To deal with that:
- the "plot" method of an xy-plot (and similarly for other types)
creates individual
  canvas items. These might accumulate.
- the "plotlist" method on the other hand creates a limited number of
canvas items,
  but these items may have a lot of coordinates. The memory
consumption will be a lot
  smaller than for the "plot" method.
- the data items have several labels - both "data" and the data series
they belong to.
  You can use that to remove items when they are no longer needed
without redrawing
  the plot/chart. Consult the documentation for details.

Regards,

Arjen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Donal K. Fellows  
View profile  
 More options Feb 10, 8:58 am
Newsgroups: comp.lang.tcl
From: "Donal K. Fellows" <donal.k.fell...@manchester.ac.uk>
Date: Fri, 10 Feb 2012 13:58:09 +0000
Local: Fri, Feb 10 2012 8:58 am
Subject: Re: How to remove Plotchart data from memory?
On 10/02/2012 12:36, Arjen Markus wrote:

> A source of memory consumption could be the canvas. To deal with that:
> - the "plot" method of an xy-plot (and similarly for other types)
>   creates individual  canvas items. These might accumulate.

The item IDs will certainly leak; they're Tk_Uids under the covers.
Reuse if you can.

> - the "plotlist" method on the other hand creates a limited number of
>   canvas items, but these items may have a lot of coordinates. The memory
>   consumption will be a lot smaller than for the "plot" method.

Yes. Coordinate lists don't leak.

Donal.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcos  
View profile  
 More options Feb 17, 10:16 am
Newsgroups: comp.lang.tcl
From: Marcos <c2o.pro...@gmail.com>
Date: Fri, 17 Feb 2012 07:16:49 -0800 (PST)
Local: Fri, Feb 17 2012 10:16 am
Subject: Re: How to remove Plotchart data from memory?
On Feb 10, 10:36 am, Arjen Markus <arjen.markus...@gmail.com> wrote:

Thanks for the informations and the indication of the command
plotlist.
Rushed to solve my problem I did not pay attention to the method
plotlist.
Marcos

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjen Markus  
View profile  
 More options Feb 19, 7:41 am
Newsgroups: comp.lang.tcl
From: Arjen Markus <arjen.markus...@gmail.com>
Date: Sun, 19 Feb 2012 04:41:18 -0800 (PST)
Local: Sun, Feb 19 2012 7:41 am
Subject: Re: How to remove Plotchart data from memory?
On 17 feb, 16:16, Marcos <c2o.pro...@gmail.com> wrote:

Well, plotlist is a relatively new one :), it is meant for speed, it
was
not designed for minimizing memory usage - that is merely a convenient
consequence.

Regards,

Arjen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »