mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-06 06:21:16 +08:00
fixed incorrect handling of the palette option
This commit is contained in:
parent
3ec5e7a417
commit
1419007483
@ -549,14 +549,7 @@ sub plotStoredData
|
|||||||
my $body = join(', ' , map({ '"-"' . $_} @extraopts) );
|
my $body = join(', ' , map({ '"-"' . $_} @extraopts) );
|
||||||
if($options{'3d'})
|
if($options{'3d'})
|
||||||
{
|
{
|
||||||
if($options{colormap})
|
print PIPE "splot $body\n";
|
||||||
{
|
|
||||||
print PIPE "splot $body palette\n";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print PIPE "splot $body\n";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -589,7 +582,8 @@ sub updateCurveOptions
|
|||||||
$title = $id if $options{autolegend};
|
$title = $id if $options{autolegend};
|
||||||
|
|
||||||
my $titleoption = defined $title ? "title \"$title\"" : "notitle";
|
my $titleoption = defined $title ? "title \"$title\"" : "notitle";
|
||||||
$curveoptions->{options} = "$titleoption $curveoptions->{extraoptions}";
|
my $colormapoption = $options{colormap} ? 'palette' : '';
|
||||||
|
$curveoptions->{options} = "$titleoption $curveoptions->{extraoptions} $colormapoption";
|
||||||
}
|
}
|
||||||
|
|
||||||
sub getCurve
|
sub getCurve
|
||||||
|
Loading…
Reference in New Issue
Block a user