Allow extrakws for hexbin
This commit is contained in:
parent
d196952571
commit
1fc0892551
@ -372,8 +372,10 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series)
|
|||||||
vmin, vmax = clims = get_clims(sp, series)
|
vmin, vmax = clims = get_clims(sp, series)
|
||||||
|
|
||||||
# Dict to store extra kwargs
|
# Dict to store extra kwargs
|
||||||
if st == :wireframe
|
if st == :wireframe || st == :hexbin
|
||||||
extrakw = KW() # vmin, vmax cause an error for wireframe plot
|
# vmin, vmax cause an error for wireframe plot
|
||||||
|
# We are not supporting clims for hexbin as calculation of bins is not trivial
|
||||||
|
extrakw = KW()
|
||||||
else
|
else
|
||||||
extrakw = KW(:vmin => vmin, :vmax => vmax)
|
extrakw = KW(:vmin => vmin, :vmax => vmax)
|
||||||
end
|
end
|
||||||
@ -517,7 +519,7 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::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],
|
||||||
# extrakw... # We are not supporting clims for hexbin as calculation of bins is not trivial
|
extrakw...
|
||||||
)
|
)
|
||||||
push!(handles, handle)
|
push!(handles, handle)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user