diff --git a/src/backends.jl b/src/backends.jl index 90e5df3c..2dd80983 100644 --- a/src/backends.jl +++ b/src/backends.jl @@ -354,6 +354,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 4bd87ce6..6d3a759b 100644 --- a/src/backends/gr.jl +++ b/src/backends/gr.jl @@ -1543,6 +1543,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 @@ -1757,6 +1759,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 # ----------------------------------------------------------------