mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-06-24 23:01:12 +08:00
--timefmt can be used with --histogram
This commit is contained in:
parent
7e1e6af184
commit
c4eef7a167
@ -397,9 +397,9 @@ sub interpretCommandline
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( $options{timefmt} && !$options{domain} )
|
if ( $options{timefmt} && !$options{domain} && !@{$options{histogram}} )
|
||||||
{
|
{
|
||||||
print STDERR "--timefmt makes sense only with --domain\n";
|
print STDERR "--timefmt makes sense only with --domain or --histogram\n";
|
||||||
exit -1;
|
exit -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1002,8 +1002,8 @@ sub mainThread
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$domain[0] = $line_number;
|
$domain[0] = $line_number;
|
||||||
$domain0_numeric = makeDomainNumeric( $domain[0] );
|
$domain0_numeric = $line_number;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $id = -1;
|
my $id = -1;
|
||||||
@ -1156,7 +1156,7 @@ sub updateCurveOptions
|
|||||||
my $histoptions = $curve->{histoptions} || '';
|
my $histoptions = $curve->{histoptions} || '';
|
||||||
|
|
||||||
my $usingoptions = '';
|
my $usingoptions = '';
|
||||||
if( $options{timefmt} )
|
if( $options{timefmt} && !$histoptions )
|
||||||
{
|
{
|
||||||
# with --timefmt I need an explicit 'using' specification. I specify the
|
# with --timefmt I need an explicit 'using' specification. I specify the
|
||||||
# columns as 1:2:3..... I need the right number of columns (this is given
|
# columns as 1:2:3..... I need the right number of columns (this is given
|
||||||
|
Loading…
Reference in New Issue
Block a user