Compare commits

..

6 Commits

Author SHA1 Message Date
Dima Kogan
7141538258 POD update 2012-02-11 21:05:33 -08:00
Dima Kogan
970364289d changelog bump 2012-02-11 21:05:07 -08:00
Dima Kogan
e8e54edd9d made consistent my email addy in the debian changelog 2012-02-11 21:03:53 -08:00
Dima Kogan
e30f0c792e added --geometry option to specify plot dimensions 2012-02-11 20:48:22 -08:00
Dima Kogan
7d7374e628 version bump 2011-12-27 16:48:13 -08:00
Dima Kogan
7559ed5f66 data-ids can now include characters such as -. Any non-whitespace works 2011-12-27 16:46:30 -08:00
5 changed files with 26 additions and 4 deletions

View File

@@ -337,6 +337,8 @@ As an example, if line 3 of the input is "0 9 1 20"
--dump Instead of printing to gnuplot, print to STDOUT. For
debugging.
--geometry If using X11, specifies the size, position of the plot window
=head1 ACKNOWLEDGEMENT
This program is originally based on the driveGnuPlots.pl script from

View File

@@ -102,7 +102,8 @@ sub interpretCommandline
'title=s', 'xlen=f', 'ymin=f', 'ymax=f', 'xmin=f', 'xmax=f', 'y2min=f', 'y2max=f',
'zmin=f', 'zmax=f', 'y2=s@', 'curvestyle=s{2}', 'curvestyleall=s', 'extracmds=s@',
'size=s', 'square!', 'square_xy!', 'hardcopy=s', 'maxcurves=i', 'monotonic!',
'extraValuesPerPoint=i', 'help', 'dump') or pod2usage(1);
'extraValuesPerPoint=i', 'help', 'dump',
'geometry=s') or pod2usage(1);
# handle various cmdline-option errors
if ( $options->{help} )
@@ -252,7 +253,9 @@ sub mainThread
}
else
{
open PIPE, "|gnuplot $dopersist" or die "Can't initialize gnuplot\n";
my $geometry = defined $options{geometry} ?
"-geometry $options{geometry}" : '';
open PIPE, "|gnuplot $geometry $dopersist" or die "Can't initialize gnuplot\n";
}
autoflush PIPE 1;
@@ -388,7 +391,7 @@ sub mainThread
my $numRE = '-?\d*\.?\d+(?:[Ee][-+]?\d+)?';
# a point may be preceded by an id
my $pointRE = $options{dataid} ? '(\w+)\s+' : '()';
my $pointRE = $options{dataid} ? '(\S+)\s+' : '()';
$pointRE .= '(' . join('\s+', ($numRE) x $valuesPerPoint) . ')';
$pointRE = qr/$pointRE/;
@@ -961,6 +964,8 @@ As an example, if line 3 of the input is "0 9 1 20"
--dump Instead of printing to gnuplot, print to STDOUT. For
debugging.
--geometry If using X11, specifies the size, position of the plot window
=head1 ACKNOWLEDGEMENT
This program is originally based on the driveGnuPlots.pl script from

View File

@@ -35,5 +35,6 @@ complete -W \
--monotonic \
--extraValuesPerPoint \
--dump \
--geometry \
--curvestyle \
--legend' feedgnuplot

View File

@@ -36,5 +36,6 @@ _arguments -S
'(--3d)--monotonic[Resets plot if an X in the past is seen]' \
'--extraValuesPerPoint[How many extra values are given for each data point]:' \
'--dump[Instead of printing to gnuplot, print to STDOUT]' \
'--geometry[The X11 geometry string]:geometry string:' \
'*--curvestyle[Additional styles for a curve]:curve id: :style:' \
'*--legend[Legend for a curve]:curve id: :legend:'

15
debian/changelog vendored
View File

@@ -1,3 +1,16 @@
feedgnuplot (1.19) unstable; urgency=low
* added --geometry option to specify plot dimensions
-- Dima Kogan <dima@secretsauce.net> Sat, 11 Feb 2012 21:04:42 -0800
feedgnuplot (1.18) unstable; urgency=low
* data-ids can now include characters such as -. Any non-whitespace
works
-- Dima Kogan <dima@secretsauce.net> Tue, 27 Dec 2011 16:47:36 -0800
feedgnuplot (1.17) unstable; urgency=low
[ Dima Kogan ]
@@ -7,7 +20,7 @@ feedgnuplot (1.17) unstable; urgency=low
[ Hermann Schwarting ]
* add build dependency libtest-script-run-perl
-- Dima Kogan <dkogan@secretsauce.net> Sun, 20 Nov 2011 19:17:22 -0800
-- Dima Kogan <dima@secretsauce.net> Sun, 20 Nov 2011 19:17:22 -0800
feedgnuplot (1.16) unstable; urgency=low