gr: added support for hexbin plots

This commit is contained in:
Josef Heinen 2017-02-10 11:24:48 +01:00
parent 1555876280
commit 471b09bd6c

View File

@ -33,7 +33,7 @@ const _gr_attr = merge_with_base_supported([
:arrow, :arrow,
]) ])
const _gr_seriestype = [ const _gr_seriestype = [
:path, :scatter, :path, :scatter, :hexbin,
:heatmap, :pie, :image, :heatmap, :pie, :image,
:contour, :path3d, :scatter3d, :surface, :wireframe, :contour, :path3d, :scatter3d, :surface, :wireframe,
:shape :shape
@ -798,6 +798,9 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas)
gr_draw_markers(series, x, y) gr_draw_markers(series, x, y)
end end
elseif st == :hexbin
GR.hexbin(x, y, nbins = series[:bins])
elseif st == :contour elseif st == :contour
zmin, zmax = gr_lims(zaxis, false) zmin, zmax = gr_lims(zaxis, false)
clims = sp[:clims] clims = sp[:clims]