diff --git a/src/backends.jl b/src/backends.jl index 11d0a414..70fba5da 100644 --- a/src/backends.jl +++ b/src/backends.jl @@ -351,7 +351,7 @@ const _gr_attr = merge_with_base_supported([ const _gr_seriestype = [ :path, :scatter, :straightline, :heatmap, :pie, :image, - :contour, :path3d, :scatter3d, :surface, :wireframe, + :contour, :path3d, :scatter3d, :surface, :wireframe, :volume, :shape ] const _gr_style = [:auto, :solid, :dash, :dot, :dashdot, :dashdotdot] diff --git a/src/backends/gr.jl b/src/backends/gr.jl index 45a968d0..e79270c2 100644 --- a/src/backends/gr.jl +++ b/src/backends/gr.jl @@ -1067,6 +1067,11 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas) GR.surface(x, y, z, GR.OPTION_FILLED_MESH) end + elseif st == :volume + sp[:legend] = :none + GR.gr3.clear() + dmin, dmax = GR.gr3.volume(y.v, 0) + elseif st == :heatmap xmin, xmax, ymin, ymax = xy_lims zmin, zmax = clims