From 6c76745f323c699df4369e7c2724ab3bfc386118 Mon Sep 17 00:00:00 2001 From: Moelf Date: Fri, 9 Oct 2020 00:06:21 -0400 Subject: [PATCH] WIP add GR hexbin --- src/backends.jl | 1 + src/backends/gr.jl | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/backends.jl b/src/backends.jl index e698263c..2a6fe307 100644 --- a/src/backends.jl +++ b/src/backends.jl @@ -355,6 +355,7 @@ const _gr_seriestype = [ :wireframe, :volume, :shape, + :hexbin, ] const _gr_style = [:auto, :solid, :dash, :dot, :dashdot, :dashdotdot] const _gr_marker = _allMarkers diff --git a/src/backends/gr.jl b/src/backends/gr.jl index 0b20c460..a82fc830 100644 --- a/src/backends/gr.jl +++ b/src/backends/gr.jl @@ -1545,6 +1545,8 @@ function gr_add_series(sp, series) else gr_draw_image(series, x, y, z, clims) end + elseif st == :hexbin + gr_draw_hexbin(series, x, y) end # this is all we need to add the series_annotations text @@ -1760,6 +1762,9 @@ function gr_draw_image(series, x, y, z, clims) GR.drawimage(xmin, xmax, ymax, ymin, w, h, rgba) end +function gr_draw_hexbin(series, x, y) + GR.hexbin(x, y) +end # ----------------------------------------------------------------