pyplot hexbin
This commit is contained in:
parent
3d693d88e0
commit
28ebc0ccd8
@ -603,14 +603,16 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if st == :hexbin
|
if st == :hexbin
|
||||||
handle = ax."hexbin"(x, y;
|
handle = ax."hexbin"(x, y,
|
||||||
label = series[:label],
|
label = series[:label],
|
||||||
zorder = series[:series_plotindex],
|
C = series[:weights],
|
||||||
gridsize = series[:bins],
|
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)),
|
edgecolors = py_color(get_linecolor(series)),
|
||||||
|
alpha = series[:fillalpha],
|
||||||
cmap = py_fillcolormap(series), # applies to the pcolorfast object
|
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)
|
push!(handles, handle)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user