mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-06 06:21:16 +08:00
style is handled completely in the main thread
This commit is contained in:
parent
030676037d
commit
400ed04b31
@ -224,11 +224,6 @@ elsif(!$options{colormap})
|
||||
}
|
||||
}
|
||||
|
||||
# set up plotting style
|
||||
my $style = '';
|
||||
if($options{lines}) { $style .= 'lines';}
|
||||
if($options{points}) { $style .= 'points';}
|
||||
|
||||
# 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
|
||||
# references to lists of (x,y) tuples
|
||||
@ -353,6 +348,11 @@ sub mainThread
|
||||
print PIPE "set y2range [". $options{y2min} . ":" . $options{y2max} ."]\n" if length( $options{y2min} . $options{y2max} );
|
||||
}
|
||||
|
||||
# set up plotting style
|
||||
my $style = '';
|
||||
if($options{lines}) { $style .= 'lines';}
|
||||
if($options{points}) { $style .= 'points';}
|
||||
|
||||
# if any of the ranges are given, set the range
|
||||
print PIPE "set xrange [". $options{xmin} . ":" . $options{xmax} ."]\n" if length( $options{xmin} . $options{xmax} );
|
||||
print PIPE "set yrange [". $options{ymin} . ":" . $options{ymax} ."]\n" if length( $options{ymin} . $options{ymax} );
|
||||
|
Loading…
Reference in New Issue
Block a user