Skip to content

Commit 258389d

Browse files
committed
use whole array
1 parent 7d04c3a commit 258389d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/PDL/Graphics/TriD/Graph.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ sub add_lattice_axis {
215215
my @nc = map int($this->{Bounds}->slice("$_,0")->sclr/$nadd[$_])*$nadd[$_], 0,1;
216216
my @ns = map int($widths[$_]/$nadd[$_])+1, 0,1;
217217
# can be changed to topo heights?
218-
my $verts = PDL->zeroes(PDL::float(),3,$ns[0],$ns[1]);
218+
my $verts = PDL->zeroes(PDL::float(),3,@ns);
219219
$verts->slice("2") .= 1012.5;
220220
$verts->slice("0")->inplace->ylinvals($nc[0],$nc[0]+$nadd[0]*($ns[0]-1));
221221
$verts->slice("1")->inplace->zlinvals($nc[1],$nc[1]+$nadd[1]*($ns[1]-1));

0 commit comments

Comments
 (0)