Skip to content

Commit 89bdf25

Browse files
committed
Update plot3d_vectorized.py
1 parent 7308fb1 commit 89bdf25

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

mathics/eval/drawing/plot3d_vectorized.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@ def eval_Plot3D(
3030
names = [strip_context(str(range[0])) for range in plot_options.ranges]
3131

3232
# Mesh option
33-
nmesh = None
34-
if isinstance(plot_options.mesh, int):
35-
nmesh = plot_options.mesh
36-
elif plot_options.mesh is not SymbolNone:
37-
nmesh = 20
33+
nmesh = 20
34+
if plot_options.mesh is SymbolNone:
35+
nmesh = 0
3836

3937
# color-blind friendly palette from https://davidmathlogic.com/colorblind
4038
palette = [

0 commit comments

Comments
 (0)