Skip to content

Commit ff1a2a0

Browse files
committed
pre-fill pressure min/max in Pol
1 parent b2611b7 commit ff1a2a0

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

lib/PDL/Graphics/TriD/Graph.pm

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ sub new {
347347

348348
sub init_scale {
349349
my ($this) = @_;
350-
$this->{Scale} = [];
350+
$this->{Scale} = [undef, undef, [100,1012.5]];
351351
}
352352

353353
sub add_scale {
@@ -363,10 +363,6 @@ sub add_scale {
363363
barf "Error in Latitude $max $min\n";
364364
}
365365
}
366-
elsif ($i==2) {
367-
$max = 1012.5 if $max<1012.5;
368-
$min = 100 if $min>100;
369-
}
370366
if (!defined $this->{Scale}[$i]) {
371367
$this->{Scale}[$i] = [$min,$max];
372368
} else {

0 commit comments

Comments
 (0)