mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-06 06:21:16 +08:00
I no longer grab the gnuplot version if I don't need it
This commit is contained in:
parent
3badf920b6
commit
4e823e7de5
@ -17,8 +17,6 @@ my $VERSION = 1.24;
|
|||||||
my %options;
|
my %options;
|
||||||
interpretCommandline();
|
interpretCommandline();
|
||||||
|
|
||||||
my $gnuplotVersion = getGnuplotVersion();
|
|
||||||
|
|
||||||
# list containing the plot data. Each element is a reference to a list, representing the data for
|
# list containing the plot data. Each element is a reference to a list, representing the data for
|
||||||
# one curve. The first 'point' is a hash describing various curve parameters. The rest are all
|
# one curve. The first 'point' is a hash describing various curve parameters. The rest are all
|
||||||
# references to lists of (x,y) tuples
|
# references to lists of (x,y) tuples
|
||||||
@ -346,9 +344,9 @@ sub mainThread
|
|||||||
local *PIPE;
|
local *PIPE;
|
||||||
my $dopersist = '';
|
my $dopersist = '';
|
||||||
|
|
||||||
if($gnuplotVersion >= 4.3)
|
if( !$options{stream} && getGnuplotVersion() >= 4.3)
|
||||||
{
|
{
|
||||||
$dopersist = '--persist' if(!$options{stream});
|
$dopersist = '--persist';
|
||||||
}
|
}
|
||||||
|
|
||||||
if(exists $options{dump})
|
if(exists $options{dump})
|
||||||
|
Loading…
Reference in New Issue
Block a user