We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15c230f commit 9df26e7Copy full SHA for 9df26e7
lib/PDL/Graphics/Simple/PGPLOT.pm
@@ -199,7 +199,7 @@ sub plot {
199
my %color_opts;
200
if (defined($ipo->{crange})) {
201
$color_opts{MIN} = $ipo->{crange}[0] if defined $ipo->{crange}[0];
202
- $color_opts{MAX} = $ipo->{crange}[0] if defined $ipo->{crange}[1];
+ $color_opts{MAX} = $ipo->{crange}[1] if defined $ipo->{crange}[1];
203
}
204
205
my $more = 0;
@@ -247,7 +247,7 @@ sub plot {
247
die "Unknown curve option 'with $co->{with}'!" unless($pgpm);
248
if($pgpm eq 'imag') {
249
for my $k(keys %color_opts) {
250
- $po->{$k} = $color_opts{$k};
+ $ppo->{$k} = $color_opts{$k};
251
252
$ppo->{ drawwedge } = ($ipo->{wedge} != 0);
253
# Extract transform parameters from the corners of the image...
0 commit comments