From 0628fb9dc353959adc2fbfb54c639f303372c688 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Fri, 19 Feb 2021 18:59:47 +0100 Subject: [PATCH] enable transparency for surface with GR --- src/backends/gr.jl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/backends/gr.jl b/src/backends/gr.jl index 227a122f..b6fc8135 100644 --- a/src/backends/gr.jl +++ b/src/backends/gr.jl @@ -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 + GR.surface(x, y, z, GR.OPTION_COLORED_MESH) else # wireframe GR.setfillcolorind(0) GR.surface(x, y, z, GR.OPTION_FILLED_MESH)