Allow edgecolors to override linewidth

This commit is contained in:
Seth Axen 2021-02-15 14:53:40 -08:00
parent 0665ff907c
commit 897a5eee87

View File

@ -510,12 +510,12 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series)
end end
if st == :hexbin if st == :hexbin
extrakw[:edgecolors] = get(series[:extra_kwargs], :edgecolors, py_color(get_linecolor(series)))
handle = ax."hexbin"(x, y; handle = ax."hexbin"(x, y;
label = series[:label], label = series[:label],
C = series[:weights], C = series[:weights],
gridsize = series[:bins]==:auto ? 100 : series[:bins], # 100 is the default value gridsize = series[:bins]==:auto ? 100 : series[:bins], # 100 is the default value
linewidths = py_thickness_scale(plt, series[:linewidth]), linewidths = py_thickness_scale(plt, series[:linewidth]),
edgecolors = py_color(get_linecolor(series)),
alpha = series[:fillalpha], alpha = series[:fillalpha],
cmap = py_fillcolormap(series), # applies to the pcolorfast object cmap = py_fillcolormap(series), # applies to the pcolorfast object
zorder = series[:series_plotindex], zorder = series[:series_plotindex],