From ddf6aa976012cf5b091c3d46a9796536c255883e Mon Sep 17 00:00:00 2001 From: David MacMahon Date: Wed, 24 Mar 2021 23:24:31 -0700 Subject: [PATCH] Make Plots framework aware of new :stepmid option --- src/args.jl | 4 ++-- src/axes.jl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/args.jl b/src/args.jl index 2452dfdf..12e75cdd 100644 --- a/src/args.jl +++ b/src/args.jl @@ -54,7 +54,7 @@ const _3dTypes = [ :path3d, :scatter3d, :surface, :wireframe, :contour3d, :volume, :mesh3d ] const _allTypes = vcat([ - :none, :line, :path, :steppre, :steppost, :sticks, :scatter, + :none, :line, :path, :steppre, :stepmid, :steppost, :sticks, :scatter, :heatmap, :hexbin, :barbins, :barhist, :histogram, :scatterbins, :scatterhist, :stepbins, :stephist, :bins2d, :histogram2d, :histogram3d, :density, :bar, :hline, :vline, @@ -101,7 +101,7 @@ const _typeAliases = Dict{Symbol,Symbol}( add_non_underscore_aliases!(_typeAliases) 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] like_histogram(seriestype::Symbol) = seriestype in _histogram_like diff --git a/src/axes.jl b/src/axes.jl index 7173999e..e2f031ad 100644 --- a/src/axes.jl +++ b/src/axes.jl @@ -441,7 +441,7 @@ function widen(lmin, lmax, scale = :identity) end # 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) should_widen = false