We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6dc47e8 commit 45e6481Copy full SHA for 45e6481
1 file changed
lib/PDL/Graphics/TriD/Graph.pm
@@ -248,7 +248,7 @@ sub new {
248
249
sub init_scale {
250
my ($this) = @_;
251
- $this->{Scale} = [];
+ $this->{Scale} = [undef, undef, [100,1012.5]];
252
}
253
254
sub add_scale {
@@ -264,10 +264,6 @@ sub add_scale {
264
barf "Error in Latitude $max $min\n";
265
266
267
- elsif ($i==2) {
268
- $max = 1012.5 if $max<1012.5;
269
- $min = 100 if $min>100;
270
- }
271
if (!defined $this->{Scale}[$i]) {
272
$this->{Scale}[$i] = [$min,$max];
273
} else {
0 commit comments