mirror of
				https://github.com/dkogan/feedgnuplot.git
				synced 2025-11-04 11:38:08 +08:00 
			
		
		
		
	Plotting with no STDIN data works
This command now works: echo "" | ./bin/feedgnuplot --equation 'x' --image /tmp/1.jpg Prior to the patch, there's a trailing , in the command
This commit is contained in:
		@@ -1177,9 +1177,10 @@ sub plotStoredData
 | 
			
		||||
  my @nonemptyCurves = grep { $_->{datastring} } @curves;
 | 
			
		||||
  my @extraopts = map {$_->{options}} @nonemptyCurves;
 | 
			
		||||
 | 
			
		||||
  my $body = join('', map { "$_," } @{$options{equation}});
 | 
			
		||||
  $body   .= join(', ' , map({ "'-' $_" } @extraopts) );
 | 
			
		||||
  $body   .= join('', map { ",$_" } @{$options{'equation-above'}});
 | 
			
		||||
  my @components = (@{$options{equation}},
 | 
			
		||||
                    map({ "'-' $_" } @extraopts),
 | 
			
		||||
                    @{$options{'equation-above'}});
 | 
			
		||||
  my $body = join(',', @components);
 | 
			
		||||
 | 
			
		||||
  if($options{'3d'}) { print PIPE "splot $body\n"; }
 | 
			
		||||
  else               { print PIPE  "plot $body\n"; }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user