Skip to content

Commit 9df26e7

Browse files
committed
fix colour range for PGPLOT
1 parent 15c230f commit 9df26e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/PDL/Graphics/Simple/PGPLOT.pm

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ sub plot {
199199
my %color_opts;
200200
if (defined($ipo->{crange})) {
201201
$color_opts{MIN} = $ipo->{crange}[0] if defined $ipo->{crange}[0];
202-
$color_opts{MAX} = $ipo->{crange}[0] if defined $ipo->{crange}[1];
202+
$color_opts{MAX} = $ipo->{crange}[1] if defined $ipo->{crange}[1];
203203
}
204204

205205
my $more = 0;
@@ -247,7 +247,7 @@ sub plot {
247247
die "Unknown curve option 'with $co->{with}'!" unless($pgpm);
248248
if($pgpm eq 'imag') {
249249
for my $k(keys %color_opts) {
250-
$po->{$k} = $color_opts{$k};
250+
$ppo->{$k} = $color_opts{$k};
251251
}
252252
$ppo->{ drawwedge } = ($ipo->{wedge} != 0);
253253
# Extract transform parameters from the corners of the image...

0 commit comments

Comments
 (0)