Skip to content

Commit 45e6481

Browse files
committed
pre-fill pressure min/max in CylindricalEquidistantAxes
1 parent 6dc47e8 commit 45e6481

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
@@ -248,7 +248,7 @@ sub new {
248248

249249
sub init_scale {
250250
my ($this) = @_;
251-
$this->{Scale} = [];
251+
$this->{Scale} = [undef, undef, [100,1012.5]];
252252
}
253253

254254
sub add_scale {
@@ -264,10 +264,6 @@ sub add_scale {
264264
barf "Error in Latitude $max $min\n";
265265
}
266266
}
267-
elsif ($i==2) {
268-
$max = 1012.5 if $max<1012.5;
269-
$min = 100 if $min>100;
270-
}
271267
if (!defined $this->{Scale}[$i]) {
272268
$this->{Scale}[$i] = [$min,$max];
273269
} else {

0 commit comments

Comments
 (0)