Make Plots framework aware of new :stepmid option
This commit is contained in:
parent
50f1106cd7
commit
ddf6aa9760
@ -54,7 +54,7 @@ const _3dTypes = [
|
|||||||
:path3d, :scatter3d, :surface, :wireframe, :contour3d, :volume, :mesh3d
|
:path3d, :scatter3d, :surface, :wireframe, :contour3d, :volume, :mesh3d
|
||||||
]
|
]
|
||||||
const _allTypes = vcat([
|
const _allTypes = vcat([
|
||||||
:none, :line, :path, :steppre, :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, :histogram3d,
|
||||||
:density, :bar, :hline, :vline,
|
:density, :bar, :hline, :vline,
|
||||||
@ -101,7 +101,7 @@ const _typeAliases = Dict{Symbol,Symbol}(
|
|||||||
add_non_underscore_aliases!(_typeAliases)
|
add_non_underscore_aliases!(_typeAliases)
|
||||||
|
|
||||||
const _histogram_like = [:histogram, :barhist, :barbins]
|
const _histogram_like = [:histogram, :barhist, :barbins]
|
||||||
const _line_like = [:line, :path, :steppre, :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]
|
||||||
|
|
||||||
like_histogram(seriestype::Symbol) = seriestype in _histogram_like
|
like_histogram(seriestype::Symbol) = seriestype in _histogram_like
|
||||||
|
|||||||
@ -441,7 +441,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, :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)
|
||||||
|
|
||||||
function default_should_widen(axis::Axis)
|
function default_should_widen(axis::Axis)
|
||||||
should_widen = false
|
should_widen = false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user