Skip to content

Commit 7308fb1

Browse files
committed
Update comment
1 parent e0400a9 commit 7308fb1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

mathics/eval/drawing/plot3d_vectorized.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ def eval_Plot3D(
5757
def compute_over_grid(nx, ny):
5858
"""
5959
For each function, computes an (nx*ny, 3) array of coordinates (xyzs),
60-
and an (nx, ny) array of indices (inxs) into the coordinate array representing
61-
the index into the coordinate orray of the corresponding position in the grid.
62-
Returns an iterator over xyzs,inxs pairs, one for each function.
60+
and an (nx, ny) array of indices (inxs) into xyzs representing
61+
the index in xyzs of the corresponding position in the grid.
62+
Returns an iterator over (xyzs,inxs) pairs, one for each function.
6363
6464
This is used for computing the full grid of quads representing the
6565
surface defined by each function, and also for computing a sparse
@@ -122,7 +122,8 @@ def compute_over_grid(nx, ny):
122122

123123
with Timer("Mesh"):
124124
nx, ny = plot_options.plotpoints
125-
# Do nmesh lines in each direction.
125+
# Do nmesh lines in each direction, each line formed
126+
# from one row or one column of the inxs array.
126127
# Each mesh line has high res (nx or ny) so it follows
127128
# the contours of the surface.
128129
for xyzs, inxs in compute_over_grid(nx, nmesh):

0 commit comments

Comments
 (0)