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 # ----------------------------------------------------------------