mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-09-18 10:28:12 +08:00
Compare commits
18 Commits
debian/1.6
...
debian
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d941bee57b | ||
![]() |
8be1c515c8 | ||
![]() |
96ac271cda | ||
![]() |
251a690aa2 | ||
![]() |
f15fb129e8 | ||
![]() |
c275159bc3 | ||
![]() |
dab5fc6bac | ||
![]() |
aa5732605c | ||
![]() |
8429e139e3 | ||
![]() |
4109a586da | ||
![]() |
db4fdcb933 | ||
![]() |
fce128aa14 | ||
![]() |
8c0f3df285 | ||
![]() |
c99b377083 | ||
![]() |
ed99cd89d1 | ||
![]() |
41f4de612c | ||
![]() |
78b2069010 | ||
![]() |
4817a53d21 |
21
Changes
21
Changes
@@ -1,3 +1,24 @@
|
|||||||
|
feedgnuplot (1.62)
|
||||||
|
|
||||||
|
* I explicitly ignore all lines that have '-' values
|
||||||
|
These may come from vnl-filter -p "dx=diff(x)" ... output. For instance, this
|
||||||
|
plot is broken before this patch:
|
||||||
|
|
||||||
|
(echo '# x'; seq 5) | vnl-filter --noskipempty -p 'd=diff(x)' \
|
||||||
|
| feedgnuplot --lines
|
||||||
|
|
||||||
|
-- Dima Kogan <dkogan@debian.org> Sat, 27 Jan 2024 17:01:18 -0800
|
||||||
|
|
||||||
|
feedgnuplot (1.61)
|
||||||
|
|
||||||
|
* #! line uses /usr/bin/env to work with nonstandard installations
|
||||||
|
* Added --cblabel to label the color bar
|
||||||
|
* Added --cbmin, --cbmax
|
||||||
|
* --zmin,--zmax,--zlabel are always sent, if requested
|
||||||
|
* Plotting with no STDIN data works
|
||||||
|
|
||||||
|
-- Dima Kogan <dkogan@debian.org> Fri, 04 Mar 2022 14:45:36 -0800
|
||||||
|
|
||||||
feedgnuplot (1.60)
|
feedgnuplot (1.60)
|
||||||
|
|
||||||
* Test suite fix: we have the right number of tests
|
* Test suite fix: we have the right number of tests
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/perl
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
package feedgnuplot; # for the metacpan indexer
|
package feedgnuplot; # for the metacpan indexer
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@ use Pod::Usage;
|
|||||||
use Time::Piece;
|
use Time::Piece;
|
||||||
|
|
||||||
# Makefile.PL assumes this is in ''
|
# Makefile.PL assumes this is in ''
|
||||||
my $VERSION = '1.60';
|
my $VERSION = '1.62';
|
||||||
|
|
||||||
my %options;
|
my %options;
|
||||||
interpretCommandline();
|
interpretCommandline();
|
||||||
@@ -115,11 +115,12 @@ sub interpretCommandline
|
|||||||
|
|
||||||
'3d!', 'colormap!', 'lines!', 'points!', 'circles',
|
'3d!', 'colormap!', 'lines!', 'points!', 'circles',
|
||||||
'legend=s{2}', 'autolegend!',
|
'legend=s{2}', 'autolegend!',
|
||||||
'xlabel=s', 'x2label=s', 'ylabel=s', 'y2label=s', 'zlabel=s',
|
'xlabel=s', 'x2label=s', 'ylabel=s', 'y2label=s', 'zlabel=s', 'cblabel=s',
|
||||||
'title=s', 'xlen=f',
|
'title=s', 'xlen=f',
|
||||||
'xmin=s', 'xmax=s', 'x2min=s', 'x2max=s',
|
'xmin=s', 'xmax=s', 'x2min=s', 'x2max=s',
|
||||||
'ymin=f', 'ymax=f', 'y2min=f', 'y2max=f',
|
'ymin=f', 'ymax=f', 'y2min=f', 'y2max=f',
|
||||||
'zmin=f', 'zmax=f',
|
'zmin=f', 'zmax=f',
|
||||||
|
'cbmin=f', 'cbmax=f',
|
||||||
'x2=s@', 'y2=s@', 'x1y2=s@', 'x2y1=s@', 'x2y2=s@',
|
'x2=s@', 'y2=s@', 'x1y2=s@', 'x2y1=s@', 'x2y2=s@',
|
||||||
'style=s{2}', 'curvestyle=s{2}', 'curvestyleall=s', 'styleall=s', 'with=s',
|
'style=s{2}', 'curvestyle=s{2}', 'curvestyleall=s', 'styleall=s', 'with=s',
|
||||||
'extracmds=s@', 'cmds=s@',
|
'extracmds=s@', 'cmds=s@',
|
||||||
@@ -422,15 +423,6 @@ sub interpretCommandline
|
|||||||
exit -1;
|
exit -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$options{colormap})
|
|
||||||
{
|
|
||||||
if ( defined $options{zmin} || defined $options{zmax} || defined $options{zlabel} )
|
|
||||||
{
|
|
||||||
print STDERR "--zmin/zmax/zlabel only makes sense with --3d or --colormap\n";
|
|
||||||
exit -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( defined $options{square_xy} )
|
if ( defined $options{square_xy} )
|
||||||
{
|
{
|
||||||
print STDERR "--square_xy only makes sense with --3d\n";
|
print STDERR "--square_xy only makes sense with --3d\n";
|
||||||
@@ -788,6 +780,12 @@ sub mainThread
|
|||||||
$options{curvestyleall} = "with circles $options{curvestyleall}";
|
$options{curvestyleall} = "with circles $options{curvestyleall}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Required to ignore all lines that have '-' values, such as may come from
|
||||||
|
# vnl-filter -p "dx=diff(x)" ... output. For instance, this plot is broken
|
||||||
|
# without this extra line:
|
||||||
|
# (echo '# x'; seq 5) | vnl-filter --noskipempty -p 'd=diff(x)' | ./feedgnuplot --lines
|
||||||
|
print PIPE "set datafile missing \"-\"\n";
|
||||||
|
|
||||||
print PIPE "set style data $style\n" if $style;
|
print PIPE "set style data $style\n" if $style;
|
||||||
print PIPE "set grid\n";
|
print PIPE "set grid\n";
|
||||||
|
|
||||||
@@ -796,6 +794,7 @@ sub mainThread
|
|||||||
print(PIPE "set ylabel \"$options{ylabel }\"\n") if defined $options{ylabel};
|
print(PIPE "set ylabel \"$options{ylabel }\"\n") if defined $options{ylabel};
|
||||||
print(PIPE "set y2label \"$options{y2label}\"\n") if defined $options{y2label};
|
print(PIPE "set y2label \"$options{y2label}\"\n") if defined $options{y2label};
|
||||||
print(PIPE "set zlabel \"$options{zlabel }\"\n") if defined $options{zlabel};
|
print(PIPE "set zlabel \"$options{zlabel }\"\n") if defined $options{zlabel};
|
||||||
|
print(PIPE "set cblabel \"$options{cblabel}\"\n") if defined $options{cblabel};
|
||||||
print(PIPE "set title \"$options{title }\"\n") if defined $options{title};
|
print(PIPE "set title \"$options{title }\"\n") if defined $options{title};
|
||||||
|
|
||||||
if($options{square})
|
if($options{square})
|
||||||
@@ -888,7 +887,15 @@ sub mainThread
|
|||||||
sendRangeCommand( "xrange", $options{xmin}, $options{xmax} );
|
sendRangeCommand( "xrange", $options{xmin}, $options{xmax} );
|
||||||
sendRangeCommand( "yrange", $options{ymin}, $options{ymax} );
|
sendRangeCommand( "yrange", $options{ymin}, $options{ymax} );
|
||||||
sendRangeCommand( "zrange", $options{zmin}, $options{zmax} );
|
sendRangeCommand( "zrange", $options{zmin}, $options{zmax} );
|
||||||
sendRangeCommand( "cbrange", $options{zmin}, $options{zmax} ) if($options{colormap});
|
if($options{colormap})
|
||||||
|
{
|
||||||
|
# legacy behavior. Nobody should really be using --colormap
|
||||||
|
sendRangeCommand( "cbrange", $options{zmin}, $options{zmax} );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sendRangeCommand( "cbrange", $options{cbmin},$options{cbmax});
|
||||||
|
}
|
||||||
|
|
||||||
# add the extra global options
|
# add the extra global options
|
||||||
print(PIPE "$_\n") foreach (@{$options{extracmds}});
|
print(PIPE "$_\n") foreach (@{$options{extracmds}});
|
||||||
@@ -1176,9 +1183,10 @@ sub plotStoredData
|
|||||||
my @nonemptyCurves = grep { $_->{datastring} } @curves;
|
my @nonemptyCurves = grep { $_->{datastring} } @curves;
|
||||||
my @extraopts = map {$_->{options}} @nonemptyCurves;
|
my @extraopts = map {$_->{options}} @nonemptyCurves;
|
||||||
|
|
||||||
my $body = join('', map { "$_," } @{$options{equation}});
|
my @components = (@{$options{equation}},
|
||||||
$body .= join(', ' , map({ "'-' $_" } @extraopts) );
|
map({ "'-' $_" } @extraopts),
|
||||||
$body .= join('', map { ",$_" } @{$options{'equation-above'}});
|
@{$options{'equation-above'}});
|
||||||
|
my $body = join(',', @components);
|
||||||
|
|
||||||
if($options{'3d'}) { print PIPE "splot $body\n"; }
|
if($options{'3d'}) { print PIPE "splot $body\n"; }
|
||||||
else { print PIPE "plot $body\n"; }
|
else { print PIPE "plot $body\n"; }
|
||||||
@@ -1924,9 +1932,16 @@ Interpret the X data as a time/date, parsed with the given format
|
|||||||
|
|
||||||
C<--colormap>
|
C<--colormap>
|
||||||
|
|
||||||
Show a colormapped xy plot. Requires extra data for the color. zmin/zmax can be
|
This is a legacy option used to who a colormapped xy plot. It does:
|
||||||
used to set the extents of the colors. Automatically sets the
|
|
||||||
C<--rangesize>/C<--tuplesize>.
|
- Adds C<palette> to C<--curvestyleall>
|
||||||
|
|
||||||
|
- Adds 1 to the default C<--tuplesize> (if C<--tuplesizeall> is not given
|
||||||
|
|
||||||
|
- Uses C<--zmin>, C<--zmax> to set the colorbar range
|
||||||
|
|
||||||
|
It's clearer to set the relevant options explicitly, but C<--colormap> still
|
||||||
|
exists for compatibility
|
||||||
|
|
||||||
=item
|
=item
|
||||||
|
|
||||||
@@ -2003,10 +2018,11 @@ instance C<--set 'xrange [20:10]'> to set the given inverted bounds.
|
|||||||
|
|
||||||
=item
|
=item
|
||||||
|
|
||||||
C<--xlabel/x2label/ylabel/y2label/zlabel xxx>
|
C<--xlabel/x2label/ylabel/y2label/zlabel/cblabel xxx>
|
||||||
|
|
||||||
Label the given axis. The x2/y2-axis labels do not apply to 3d plots while the
|
Label the given axis. The x2/y2-axis labels do not apply to 3d plots while the
|
||||||
z-axis label applies I<only> to 3d plots.
|
z-axis label applies I<only> to 3d plots. The "cblabel" applies to the colorbar,
|
||||||
|
if there is one.
|
||||||
|
|
||||||
=item
|
=item
|
||||||
|
|
||||||
|
@@ -66,6 +66,7 @@ complete -W \
|
|||||||
--zlabel \
|
--zlabel \
|
||||||
--zmax \
|
--zmax \
|
||||||
--zmin \
|
--zmin \
|
||||||
|
--cblabel \
|
||||||
--xticlabels \
|
--xticlabels \
|
||||||
--using \
|
--using \
|
||||||
--usingall \
|
--usingall \
|
||||||
|
@@ -14,6 +14,7 @@ _arguments -S
|
|||||||
'--ylabel:Y-axis label:' \
|
'--ylabel:Y-axis label:' \
|
||||||
'--y2label:Y2-axis label:' \
|
'--y2label:Y2-axis label:' \
|
||||||
'--zlabel:Z-axis label:' \
|
'--zlabel:Z-axis label:' \
|
||||||
|
'--cblabel:Colorbar label:' \
|
||||||
'--title:Plot title:' \
|
'--title:Plot title:' \
|
||||||
'--autolegend[Label each plot with its data ID]' \
|
'--autolegend[Label each plot with its data ID]' \
|
||||||
'(--3d)--xlen[the size of the x-window to plot]:window size:' \
|
'(--3d)--xlen[the size of the x-window to plot]:window size:' \
|
||||||
|
17
debian/changelog
vendored
17
debian/changelog
vendored
@@ -1,3 +1,20 @@
|
|||||||
|
feedgnuplot (1.62-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release
|
||||||
|
explicitly ignore all lines that have '-' values
|
||||||
|
|
||||||
|
-- Dima Kogan <dkogan@debian.org> Sat, 27 Jan 2024 17:03:28 -0800
|
||||||
|
|
||||||
|
feedgnuplot (1.61-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release
|
||||||
|
- Added --cblabel to label the color bar
|
||||||
|
- Added --cbmin, --cbmax
|
||||||
|
- --zmin,--zmax,--zlabel are always sent, if requested
|
||||||
|
- Plotting with no STDIN data works
|
||||||
|
|
||||||
|
-- Dima Kogan <dkogan@debian.org> Fri, 04 Mar 2022 14:47:42 -0800
|
||||||
|
|
||||||
feedgnuplot (1.60-1) unstable; urgency=medium
|
feedgnuplot (1.60-1) unstable; urgency=medium
|
||||||
|
|
||||||
* New upstream release
|
* New upstream release
|
||||||
|
1
debian/compat
vendored
1
debian/compat
vendored
@@ -1 +0,0 @@
|
|||||||
9
|
|
4
debian/control
vendored
4
debian/control
vendored
@@ -1,7 +1,7 @@
|
|||||||
Source: feedgnuplot
|
Source: feedgnuplot
|
||||||
Section: science
|
Section: science
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Build-Depends: debhelper (>= 9), libstring-shellquote-perl, perl, gawk, gnuplot, libipc-run-perl, liblist-moreutils-perl, libvnlog-perl, vnlog
|
Build-Depends: debhelper-compat (= 13), libstring-shellquote-perl, perl, gawk, gnuplot, libipc-run-perl, liblist-moreutils-perl, libvnlog-perl, vnlog
|
||||||
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
|
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
|
||||||
Uploaders: Dima Kogan <dkogan@debian.org>
|
Uploaders: Dima Kogan <dkogan@debian.org>
|
||||||
Standards-Version: 3.9.4
|
Standards-Version: 3.9.4
|
||||||
@@ -14,7 +14,7 @@ Architecture: all
|
|||||||
Depends: ${misc:Depends}, ${perl:Depends},
|
Depends: ${misc:Depends}, ${perl:Depends},
|
||||||
liblist-moreutils-perl,
|
liblist-moreutils-perl,
|
||||||
gnuplot-qt | gnuplot-x11 | gnuplot-nox | gnuplot5-qt | gnuplot5-x11 | gnuplot5-nox | gnuplot
|
gnuplot-qt | gnuplot-x11 | gnuplot-nox | gnuplot5-qt | gnuplot5-x11 | gnuplot5-nox | gnuplot
|
||||||
Suggests: vnlog
|
Suggests: libvnlog-perl
|
||||||
Description: Pipe-oriented frontend to Gnuplot
|
Description: Pipe-oriented frontend to Gnuplot
|
||||||
Flexible, command-line-oriented frontend to Gnuplot. Creates plots from data
|
Flexible, command-line-oriented frontend to Gnuplot. Creates plots from data
|
||||||
coming in on STDIN or given in a filename passed on the commandline. Various
|
coming in on STDIN or given in a filename passed on the commandline. Various
|
||||||
|
1
debian/patches/series
vendored
Normal file
1
debian/patches/series
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
shebang-to-usr-bin-perl.patch
|
15
debian/patches/shebang-to-usr-bin-perl.patch
vendored
Normal file
15
debian/patches/shebang-to-usr-bin-perl.patch
vendored
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
Author: Dima Kogan <dima@secretsauce.net>
|
||||||
|
Date: Sat Aug 28 13:33:00 2021 -0700
|
||||||
|
|
||||||
|
#! line uses /usr/bin/env to work with nonstandard installations
|
||||||
|
|
||||||
|
diff --git a/bin/feedgnuplot b/bin/feedgnuplot
|
||||||
|
index 3123c5b..e5e7ccf 100755
|
||||||
|
--- a/bin/feedgnuplot
|
||||||
|
+++ b/bin/feedgnuplot
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/env perl
|
||||||
|
+#!/usr/bin/perl
|
||||||
|
|
||||||
|
package feedgnuplot; # for the metacpan indexer
|
||||||
|
|
5
debian/upstream/metadata
vendored
Normal file
5
debian/upstream/metadata
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
Bug-Database: https://github.com/dkogan/feedgnuplot/issues
|
||||||
|
Bug-Submit: https://github.com/dkogan/feedgnuplot/issues/new
|
||||||
|
Repository: https://github.com/dkogan/feedgnuplot.git
|
||||||
|
Repository-Browse: https://github.com/dkogan/feedgnuplot
|
Reference in New Issue
Block a user