enable transparency for surface with GR
This commit is contained in:
parent
6b71bd961d
commit
0628fb9dc3
@ -1732,15 +1732,12 @@ function gr_draw_contour(series, x, y, z, clims)
|
||||
end
|
||||
|
||||
function gr_draw_surface(series, x, y, z, clims)
|
||||
gr_set_transparency(get_fillcolor(series), get_fillalpha(series))
|
||||
if series[:seriestype] === :surface
|
||||
if length(x) == length(y) == length(z)
|
||||
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)
|
||||
GR.surface(x, y, z, GR.OPTION_FILLED_MESH)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user