From 28ebc0ccd893f39ab9518d181ef8c3852ab02454 Mon Sep 17 00:00:00 2001 From: Zh Date: Thu, 7 May 2020 03:02:00 +0900 Subject: [PATCH] pyplot hexbin --- src/backends/pyplot.jl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index 433f3226..97cfbef5 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -603,14 +603,16 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series) end if st == :hexbin - handle = ax."hexbin"(x, y; + handle = ax."hexbin"(x, y, label = series[:label], - zorder = series[:series_plotindex], - gridsize = series[:bins], + C = series[:weights], + gridsize = series[:bins]==:auto ? 100 : series[:bins], # 100 is the default value linewidths = py_thickness_scale(plt, series[:linewidth]), edgecolors = py_color(get_linecolor(series)), + alpha = series[:fillalpha], cmap = py_fillcolormap(series), # applies to the pcolorfast object - extrakw... + zorder = series[:series_plotindex], + # extrakw... # for some reason vmin and vmax are NaN??? ) push!(handles, handle) end