parent
32c725e770
commit
4a00018f25
@ -612,7 +612,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... # for some reason vmin and vmax are NaN???
|
# extrakw... # We are not supporting clims for hexbin as calculation of bins is not trivial
|
||||||
)
|
)
|
||||||
push!(handles, handle)
|
push!(handles, handle)
|
||||||
end
|
end
|
||||||
|
|||||||
@ -460,7 +460,7 @@ end
|
|||||||
@deps plots_heatmap shape
|
@deps plots_heatmap shape
|
||||||
is_3d(::Type{Val{:plots_heatmap}}) = true
|
is_3d(::Type{Val{:plots_heatmap}}) = true
|
||||||
RecipesPipeline.is_surface(::Type{Val{:plots_heatmap}}) = true
|
RecipesPipeline.is_surface(::Type{Val{:plots_heatmap}}) = true
|
||||||
|
RecipesPipeline.is_surface(::Type{Val{:hexbin}}) = true
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Histograms
|
# Histograms
|
||||||
|
|
||||||
|
|||||||
@ -448,7 +448,7 @@ values of the input.
|
|||||||
"""
|
"""
|
||||||
function get_clims(series::Series, op=ignorenan_extrema)
|
function get_clims(series::Series, op=ignorenan_extrema)
|
||||||
zmin, zmax = Inf, -Inf
|
zmin, zmax = Inf, -Inf
|
||||||
z_colored_series = (:contour, :contour3d, :heatmap, :histogram2d, :surface)
|
z_colored_series = (:contour, :contour3d, :heatmap, :histogram2d, :surface, :hexbin)
|
||||||
for vals in (series[:seriestype] in z_colored_series ? series[:z] : nothing, series[:line_z], series[:marker_z], series[:fill_z])
|
for vals in (series[:seriestype] in z_colored_series ? series[:z] : nothing, series[:line_z], series[:marker_z], series[:fill_z])
|
||||||
if (typeof(vals) <: AbstractSurface) && (eltype(vals.surf) <: Union{Missing, Real})
|
if (typeof(vals) <: AbstractSurface) && (eltype(vals.surf) <: Union{Missing, Real})
|
||||||
zmin, zmax = _update_clims(zmin, zmax, op(vals.surf)...)
|
zmin, zmax = _update_clims(zmin, zmax, op(vals.surf)...)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user