Added histogram3d where needed

This commit is contained in:
Bernd_Mac 2021-05-18 17:26:29 +02:00
parent fde5825783
commit c85aa41885
3 changed files with 7 additions and 4 deletions

View File

@ -51,12 +51,12 @@ const _axesAliases = Dict{Symbol,Symbol}(
) )
const _3dTypes = [ const _3dTypes = [
:path3d, :scatter3d, :surface, :wireframe, :contour3d, :volume, :mesh3d :path3d, :scatter3d, :surface, :wireframe, :contour3d, :volume, :mesh3d, :histogram3d
] ]
const _allTypes = vcat([ const _allTypes = vcat([
:none, :line, :path, :steppre, :stepmid, :steppost, :sticks, :scatter, :none, :line, :path, :steppre, :stepmid, :steppost, :sticks, :scatter,
:heatmap, :hexbin, :barbins, :barhist, :histogram, :scatterbins, :heatmap, :hexbin, :barbins, :barhist, :histogram, :scatterbins,
:scatterhist, :stepbins, :stephist, :bins2d, :histogram2d, :histogram3d, :scatterhist, :stepbins, :stephist, :bins2d, :histogram2d,
:density, :bar, :hline, :vline, :density, :bar, :hline, :vline,
:contour, :pie, :shape, :image :contour, :pie, :shape, :image
], _3dTypes) ], _3dTypes)
@ -94,13 +94,15 @@ const _typeAliases = Dict{Symbol,Symbol}(
:imagesc => :image, :imagesc => :image,
:hist => :histogram, :hist => :histogram,
:hist2d => :histogram2d, :hist2d => :histogram2d,
:hist3d => :histogram3d,
:lego => :histogram3d,
:bezier => :curves, :bezier => :curves,
:bezier_curves => :curves, :bezier_curves => :curves,
) )
add_non_underscore_aliases!(_typeAliases) add_non_underscore_aliases!(_typeAliases)
const _histogram_like = [:histogram, :barhist, :barbins] const _histogram_like = [:histogram, :barhist, :barbins, :histogram3d]
const _line_like = [:line, :path, :steppre, :stepmid, :steppost] const _line_like = [:line, :path, :steppre, :stepmid, :steppost]
const _surface_like = [:contour, :contourf, :contour3d, :heatmap, :surface, :wireframe, :image] const _surface_like = [:contour, :contourf, :contour3d, :heatmap, :surface, :wireframe, :image]

View File

@ -501,7 +501,7 @@ function widen(lmin, lmax, scale = :identity)
end end
# figure out if widening is a good idea. # figure out if widening is a good idea.
const _widen_seriestypes = (:line, :path, :steppre, :stepmid, :steppost, :sticks, :scatter, :barbins, :barhist, :histogram, :scatterbins, :scatterhist, :stepbins, :stephist, :bins2d, :histogram2d, :bar, :shape, :path3d, :scatter3d) const _widen_seriestypes = (:line, :path, :steppre, :stepmid, :steppost, :sticks, :scatter, :barbins, :barhist, :histogram, :scatterbins, :scatterhist, :stepbins, :stephist, :bins2d, :histogram2d, :bar, :shape, :path3d, :scatter3d, :histogram3d)
function default_should_widen(axis::Axis) function default_should_widen(axis::Axis)
should_widen = false should_widen = false

View File

@ -49,6 +49,7 @@ function should_add_to_legend(series::Series)
:hexbin, :hexbin,
:bins2d, :bins2d,
:histogram2d, :histogram2d,
:histogram3d,
:hline, :hline,
:vline, :vline,
:contour, :contour,