LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-02-2014, 08:01 PM   #1
aihaike
Member
 
Registered: Feb 2006
Location: Paris, France
Distribution: Slackware, CentOS
Posts: 270

Rep: Reputation: 20
Question A simple real time plotting application


Dear all,

I've bash scripts that echo the load of my machine.
I'd like to know if there is a simple way to plot the data, like using Tcl.
I also though about rewriting them in python, but don't know which module to use for plotting.
I actually like how gkrellm looks, the best would be to redirect the data and make similar plotting.
Any hints here?
Thanks,

Éric.
 
Old 03-03-2014, 04:30 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Take a look at RRDTOOL http://oss.oetiker.ch/rrdtool/ which can be used to store and also graph your data.
 
Old 03-04-2014, 12:25 AM   #3
aihaike
Member
 
Registered: Feb 2006
Location: Paris, France
Distribution: Slackware, CentOS
Posts: 270

Original Poster
Rep: Reputation: 20
Thumbs up

That looks very interesting but I'm not sure it can plot data in real time.
I can generate a png but can't figure about real time data.

Last edited by aihaike; 03-04-2014 at 01:15 AM.
 
Old 03-04-2014, 01:23 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
http://sysusage.darold.net/config.html
 
Old 03-04-2014, 04:37 PM   #5
aihaike
Member
 
Registered: Feb 2006
Location: Paris, France
Distribution: Slackware, CentOS
Posts: 270

Original Poster
Rep: Reputation: 20
Thanks, I saw those tools but they are old.
I'll give a try to drraw though.
 
Old 03-05-2014, 08:20 AM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Not that old:
SysUsage v5.3 available for download. Wednesday April 04 2012

and it does sysstat (sar) data in real-time.

Getting Started with RRDtool
 
Old 03-11-2014, 05:47 PM   #7
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
The style of plotting tool you want is commonly called a strip chart. A google search involving those terms seems to turn up several results. I frequently use gnuplot, driven by a perl script to iteratively update its plotting window, to accomplish what you seem to want.
 
1 members found this post helpful.
Old 03-11-2014, 11:12 PM   #8
aihaike
Member
 
Registered: Feb 2006
Location: Paris, France
Distribution: Slackware, CentOS
Posts: 270

Original Poster
Rep: Reputation: 20
Thumbs up

Thank you, I did not know this term.
This is very helpful.
 
Old 03-12-2014, 07:47 AM   #9
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Further to what theNbomr says (excellent reference there for gnuplot), and others; I feel you are absolutely not going to be able to plot in a script, you would have to employ something with better performance and more incorporated into the XServer. Either gnuplot or the Qwt extension of Qt is going to get you much better results.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Real time c program application in Debian ngomalj Linux - Kernel 7 11-21-2012 11:05 AM
LXer: Real Time Data Plotting with GnuPlot LXer Syndicated Linux News 0 02-03-2010 03:30 PM
real time application khodeir Programming 10 12-02-2009 09:38 AM
real-time application quantt Programming 6 09-15-2009 03:58 PM
Real time plotting tool for RH9.0 lchen_temp Linux - Software 1 04-01-2005 03:30 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration