documented --xticlabels

This commit is contained in:
Dima Kogan 2021-02-21 00:31:39 -08:00
parent eec52245fb
commit 7e0f2a4312
3 changed files with 24 additions and 4 deletions

View File

@ -399,6 +399,12 @@ sub interpretCommandline
print STDERR "--3d does not make sense with circles (gnuplot doesn't support this)\n"; print STDERR "--3d does not make sense with circles (gnuplot doesn't support this)\n";
exit -1; exit -1;
} }
if ( $options{xticlabels} )
{
print STDERR "--3d makes no sense with --xticlabels\n";
exit -1;
}
} }
else else
{ {
@ -423,6 +429,12 @@ sub interpretCommandline
exit -1; exit -1;
} }
if ( $options{xticlabels} && @{$options{histogram}})
{
print STDERR "--histogram makes no sense with --xticlabels\n";
exit -1;
}
for my $hist_curve(@{$options{histogram}}) for my $hist_curve(@{$options{histogram}})
{ {
my $hist_dim = getRangeSize($hist_curve); my $hist_dim = getRangeSize($hist_curve);
@ -1470,10 +1482,13 @@ network interface in bytes/second (uses bash, awk and Linux):
=head1 DESCRIPTION =head1 DESCRIPTION
This is a flexible, command-line-oriented frontend to Gnuplot. It creates This is a flexible, command-line-oriented frontend to Gnuplot. It creates plots
plots from data coming in on STDIN or given in a filename passed on the from data coming in on STDIN or given in a filename passed on the commandline.
commandline. Various data representations are supported, as is hardcopy Various data representations are supported, as is hardcopy output and streaming
output and streaming display of live data. A simple example: display of live data. For a tutorial and a gallery please see the guide at
L<https://github.com/dkogan/feedgnuplot/blob/master/guide/guide.org>
A simple example:
$ seq 5 | awk '{print 2*$1, $1*$1}' | feedgnuplot $ seq 5 | awk '{print 2*$1, $1*$1}' | feedgnuplot
@ -2319,6 +2334,9 @@ Print the version and exit
=head1 RECIPES =head1 RECIPES
For a tutorial and a gallery please see the guide at
L<https://github.com/dkogan/feedgnuplot/blob/master/guide/guide.org>
=head2 Basic plotting of piped data =head2 Basic plotting of piped data
$ seq 5 | awk '{print 2*$1, $1*$1}' $ seq 5 | awk '{print 2*$1, $1*$1}'

View File

@ -66,4 +66,5 @@ complete -W \
--zlabel \ --zlabel \
--zmax \ --zmax \
--zmin \ --zmin \
--xticlabels \
--vnlog ' feedgnuplot --vnlog ' feedgnuplot

View File

@ -67,4 +67,5 @@ _arguments -S
'--version' \ '--version' \
'--help' \ '--help' \
'--timefmt[Format for time/date data]:time format' \ '--timefmt[Format for time/date data]:time format' \
'--xticlabels[x-axis tic labels are read from the data]' \
'--vnlog[column IDs come from a vnlog header]' '--vnlog[column IDs come from a vnlog header]'