From 8f30696a4d210eda84fc66c45626fee0aa2aaad4 Mon Sep 17 00:00:00 2001 From: Josef Heinen Date: Sat, 16 Feb 2019 18:03:21 +0100 Subject: [PATCH] gr: added support for volume plots --- src/backends.jl | 2 +- src/backends/gr.jl | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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