mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-09-18 19:18:06 +08:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
caea1285a9 | ||
![]() |
64bce2a425 | ||
![]() |
adbc8393f5 | ||
![]() |
235de3d5d1 | ||
![]() |
198122431f |
12
Changes
12
Changes
@@ -1,3 +1,15 @@
|
||||
feedgnuplot (1.29) unstable; urgency=low
|
||||
|
||||
* added CPAN meta-data to require IPC::Run at build time
|
||||
|
||||
-- Dima Kogan <dima@secretsauce.net> Wed, 04 Dec 2013 21:12:40 -0800
|
||||
|
||||
feedgnuplot (1.28)
|
||||
|
||||
* Minor POD update
|
||||
|
||||
-- Dima Kogan <dima@secretsauce.net> Wed, 04 Dec 2013 02:01:05 -0800
|
||||
|
||||
feedgnuplot (1.27)
|
||||
|
||||
* Disabled tests that can fail on some arches (can be re-enabled with
|
||||
|
@@ -63,7 +63,8 @@ WriteMakefile
|
||||
: ()),
|
||||
PL_FILES => {},
|
||||
EXE_FILES => [ 'bin/feedgnuplot' ],
|
||||
BUILD_REQUIRES => { 'String::ShellQuote' => 0},
|
||||
BUILD_REQUIRES => { 'String::ShellQuote' => 0,
|
||||
'IPC::Run' => 0},
|
||||
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
|
||||
clean => { FILES => 'feedgnuplot-*' },
|
||||
);
|
||||
|
@@ -13,7 +13,7 @@ use Thread::Queue;
|
||||
use Pod::Usage;
|
||||
use Time::Piece;
|
||||
|
||||
my $VERSION = 1.27;
|
||||
my $VERSION = 1.29;
|
||||
|
||||
my %options;
|
||||
interpretCommandline();
|
||||
@@ -961,6 +961,47 @@ Simple plotting of piped data:
|
||||
|
||||
$ seq 5 | awk '{print 2*$1, $1*$1}' |
|
||||
feedgnuplot --lines --points --legend 0 "data 0" --title "Test plot" --y2 1
|
||||
--terminal 'dumb 80,40' --exit
|
||||
|
||||
Test plot
|
||||
|
||||
10 ++------+--------+-------+-------+-------+--------+-------+------*A 25
|
||||
+ + + + + + + + **#+
|
||||
| : : : : : : data 0+**A*** |
|
||||
| : : : : : : :** # |
|
||||
9 ++.......................................................**.##....|
|
||||
| : : : : : : ** :# |
|
||||
| : : : : : : ** # |
|
||||
| : : : : : :** ##: ++ 20
|
||||
8 ++................................................A....#..........|
|
||||
| : : : : : **: # : |
|
||||
| : : : : : ** : ## : |
|
||||
| : : : : : ** :# : |
|
||||
| : : : : :** B : |
|
||||
7 ++......................................**......##................|
|
||||
| : : : : ** : ## : : ++ 15
|
||||
| : : : : ** : # : : |
|
||||
| : : : :** : ## : : |
|
||||
6 ++..............................*A.......##.......................|
|
||||
| : : : ** : ##: : : |
|
||||
| : : : ** : # : : : |
|
||||
| : : :** : ## : : : ++ 10
|
||||
5 ++......................**........##..............................|
|
||||
| : : ** : #B : : : |
|
||||
| : : ** : ## : : : : |
|
||||
| : :** : ## : : : : |
|
||||
4 ++...............A.......###......................................|
|
||||
| : **: ##: : : : : |
|
||||
| : ** : ## : : : : : ++ 5
|
||||
| : ** : ## : : : : : |
|
||||
| :** ##B# : : : : : |
|
||||
3 ++.....**..####...................................................|
|
||||
| **#### : : : : : : |
|
||||
| **## : : : : : : : |
|
||||
B** + + + + + + + +
|
||||
2 A+------+--------+-------+-------+-------+--------+-------+------++ 0
|
||||
1 1.5 2 2.5 3 3.5 4 4.5 5
|
||||
|
||||
|
||||
Simple real-time plotting example: plot how much data is received on the wlan0
|
||||
network interface in bytes/second (uses bash, awk and Linux):
|
||||
@@ -1181,10 +1222,10 @@ data file can be plotted simply with
|
||||
|
||||
$ ./data
|
||||
|
||||
The caveats here are that on Linux the whole #! line is limited to 127 charaters
|
||||
and that the full path to feedgnuplot must be given. The 127 character limit is
|
||||
a serious limitation, but this can likely be resolved with a kernel patch. I
|
||||
have only tried on Linux 2.6.
|
||||
The caveats here are that on Linux the whole #! line is limited to 127
|
||||
characters and that the full path to feedgnuplot must be given. The 127
|
||||
character limit is a serious limitation, but this can likely be resolved with a
|
||||
kernel patch. I have only tried on Linux 2.6.
|
||||
|
||||
=head3 Self-plotting data with perl inline data
|
||||
|
||||
|
Reference in New Issue
Block a user