Skip to content

Commit

Permalink
Merge pull request JuliaPlots#3292 from daschw/gr-surface
Browse files Browse the repository at this point in the history
remove black lines from GR surface with equal-length x, y, and z input
  • Loading branch information
daschw authored Feb 10, 2021
2 parents 76cf8f0 + df8fe4d commit d196952
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/backends/gr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1736,13 +1736,12 @@ end
function gr_draw_surface(series, x, y, z, clims)
if series[:seriestype] === :surface
if length(x) == length(y) == length(z)
GR.trisurface(x, y, z)
else
try
GR.gr3.surface(x, y, z, GR.OPTION_COLORED_MESH)
catch
GR.surface(x, y, z, GR.OPTION_COLORED_MESH)
end
x, y, z = GR.gridit(x, y, z, 200, 200)
end
try
GR.gr3.surface(x, y, z, GR.OPTION_COLORED_MESH)
catch
GR.surface(x, y, z, GR.OPTION_COLORED_MESH)
end
else # wireframe
GR.setfillcolorind(0)
Expand Down

0 comments on commit d196952

Please sign in to comment.