Xref: utzoo comp.windows.x:34351 comp.windows.x.motif:2241 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!lll-winken!lll-crg.llnl.gov From: chapman@lll-crg.llnl.gov (Carol Chapman) Newsgroups: comp.windows.x,comp.windows.x.motif,ba.windows.x,llnl.x Subject: Need real-time plotting update algorithm Keywords: how often to update plot?, custom widget, Motif 1.1, C Message-ID: <93681@lll-winken.LLNL.GOV> Date: 22 Mar 91 03:58:53 GMT Sender: usenet@lll-winken.LLNL.GOV Followup-To: comp.windows.x Organization: Livermore National Laboratory Lines: 23 Nntp-Posting-Host: lll-crg.llnl.gov I am in search of a good algorithm for updating a real-time plot. The plotting may be done in just about any unit of time: seconds, minutes, hours, etc. and there may be multiple plots on one graph. I need to calculate how often I can update each plot. The user won't be able to see a difference if I update too often, but will complain bitterly if updates don't occur often enough. I believe I also need to take into account how many plots are on the graph, so that they don't slow each other down in their haste to update. My X axis represents time. The plotter is a widget (custom), so I know I will have to recalculate everytime the widget is resized. Surely someone out there has dealt with this before? thanx, carol P.S. I'm using C and Motif 1.1 on a VMS system, if that makes a difference. Carol Chapman Tel. (415) 423-7876 Livermore National Laboratory NEW --> chapman@.llnl.gov P. O. Box 808, L-572 "Are you in charge here?" Livermore, CA 94550 "No, but I'm full of ideas!" -- Dr. Who