Merge pull request #3292 from daschw/gr-surface
remove black lines from GR surface with equal-length x, y, and z input
This commit is contained in:
commit
d196952571
@ -1736,13 +1736,12 @@ end
|
|||||||
function gr_draw_surface(series, x, y, z, clims)
|
function gr_draw_surface(series, x, y, z, clims)
|
||||||
if series[:seriestype] === :surface
|
if series[:seriestype] === :surface
|
||||||
if length(x) == length(y) == length(z)
|
if length(x) == length(y) == length(z)
|
||||||
GR.trisurface(x, y, z)
|
x, y, z = GR.gridit(x, y, z, 200, 200)
|
||||||
else
|
end
|
||||||
try
|
try
|
||||||
GR.gr3.surface(x, y, z, GR.OPTION_COLORED_MESH)
|
GR.gr3.surface(x, y, z, GR.OPTION_COLORED_MESH)
|
||||||
catch
|
catch
|
||||||
GR.surface(x, y, z, GR.OPTION_COLORED_MESH)
|
GR.surface(x, y, z, GR.OPTION_COLORED_MESH)
|
||||||
end
|
|
||||||
end
|
end
|
||||||
else # wireframe
|
else # wireframe
|
||||||
GR.setfillcolorind(0)
|
GR.setfillcolorind(0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user