mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-05 22:11:12 +08:00
allow line-only plots
Ignore-this: 59483d197ae73a0c307ca726d2d96dc3 darcs-hash:20090804205717-0cb85-998aa3e993c9063debbf5235c0d059419b695101.gz
This commit is contained in:
parent
041bdad232
commit
c77a8c0a43
@ -6,8 +6,8 @@ use Data::Dumper;
|
||||
# stream in the data by default
|
||||
# point plotting by default
|
||||
my %options = ( "stream" => 1,
|
||||
"lines" => 0);
|
||||
|
||||
"points" => 0,
|
||||
"lines" => 0,);
|
||||
GetOptions(\%options,
|
||||
"stream!",
|
||||
"lines!",
|
||||
@ -21,8 +21,11 @@ GetOptions(\%options,
|
||||
"y2=i@");
|
||||
|
||||
# set up plotting style
|
||||
my $style = "points";
|
||||
$style = "linespoints" if($options{"lines"});
|
||||
my $style = "";
|
||||
if($options{"lines"}) { $style .= "lines";}
|
||||
if($options{"points"}) { $style .= "points";}
|
||||
|
||||
if(!$style) { $style = "points"; }
|
||||
|
||||
sub usage {
|
||||
print "Usage: $0 <options>\n";
|
||||
|
Loading…
Reference in New Issue
Block a user