mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-06 06:21:16 +08:00
options should be set if they're defined, not if they're true necessarily
This commit is contained in:
parent
2d17b5b394
commit
a86cd8c621
@ -290,11 +290,11 @@ sub mainThread {
|
||||
print PIPE "set style data $style\n";
|
||||
print PIPE "set grid\n";
|
||||
|
||||
print(PIPE "set xlabel \"" . $options{"xlabel" } . "\"\n") if $options{"xlabel"};
|
||||
print(PIPE "set ylabel \"" . $options{"ylabel" } . "\"\n") if $options{"ylabel"};
|
||||
print(PIPE "set y2label \"" . $options{"y2label"} . "\"\n") if $options{"y2label"};
|
||||
print(PIPE "set title \"" . $options{"title" } . "\"\n") if $options{"title"};
|
||||
print(PIPE "set size $options{size}\n") if $options{size};
|
||||
print(PIPE "set xlabel \"" . $options{"xlabel" } . "\"\n") if defined $options{"xlabel"};
|
||||
print(PIPE "set ylabel \"" . $options{"ylabel" } . "\"\n") if defined $options{"ylabel"};
|
||||
print(PIPE "set y2label \"" . $options{"y2label"} . "\"\n") if defined $options{"y2label"};
|
||||
print(PIPE "set title \"" . $options{"title" } . "\"\n") if defined $options{"title"};
|
||||
print(PIPE "set size $options{size}\n") if defined $options{size};
|
||||
|
||||
# For the specified values, set the legend entries to 'title "blah blah"'
|
||||
if($options{"legend"})
|
||||
|
Loading…
Reference in New Issue
Block a user