gr: added support for hexbin plots
This commit is contained in:
parent
1555876280
commit
471b09bd6c
@ -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]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user