[feedgnuplot] 04/10: --curvestyle now overrides --curvestyleall
Dima Kogan
dima at secretsauce.net
Sun Oct 29 21:09:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
dkogan pushed a commit to annotated tag debian/1.45-1
in repository feedgnuplot.
commit fec440c8b3ba6405d2a21f3f39991bc23fa33c84
Author: Dima Kogan <dima at secretsauce.net>
Date: Sat Sep 30 22:53:43 2017 -0700
--curvestyle now overrides --curvestyleall
This is how it was supposed to work, but apparently it didn't work this way:
--curvestyleall options were active for ALL the curves
---
bin/feedgnuplot | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/bin/feedgnuplot b/bin/feedgnuplot
index 2d17876..18fb7ca 100755
--- a/bin/feedgnuplot
+++ b/bin/feedgnuplot
@@ -979,7 +979,8 @@ sub updateCurveOptions
$usingoptions = "using 1:" . join(':', @rest);
}
- $curve->{options} = "$histoptions $usingoptions $titleoption $curve->{extraoptions} $options{curvestyleall}";
+
+ $curve->{options} = "$histoptions $usingoptions $titleoption $curve->{extraoptions}";
}
sub getCurve
@@ -998,7 +999,11 @@ sub getCurve
if( !exists $curveIndices{$id} )
{
- push @curves, {extraoptions => ' ',
+ push @curves, {# if we have a catch-all style and no specific style, use
+ # the catch-all style
+ extraoptions => (!exists $options{curvestyle_hash}{$id} &&
+ exists $options{curvestyleall}) ?
+ "$options{curvestyleall} " : ' ',
datastring => '',
datastring_meta => [],
datastring_offset => 0}; # push a curve with no data and no options
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/feedgnuplot.git
More information about the debian-science-commits
mailing list