Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove StatsPlots warnings #3357

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/args.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const _allTypes = vcat([
:none, :line, :path, :steppre, :steppost, :sticks, :scatter,
:heatmap, :hexbin, :barbins, :barhist, :histogram, :scatterbins,
:scatterhist, :stepbins, :stephist, :bins2d, :histogram2d, :histogram3d,
:density, :bar, :hline, :vline,
:bar, :hline, :vline,
:contour, :pie, :shape, :image
], _3dTypes)

Expand Down Expand Up @@ -1172,11 +1172,6 @@ function RecipesPipeline.preprocess_attributes!(plotattributes::AKW)
plotattributes[:framestyle] = _framestyleAliases[plotattributes[:framestyle]]
end

# warnings for moved recipes
st = get(plotattributes, :seriestype, :path)
if st in (:boxplot, :violin, :density) && !isdefined(Main, :StatsPlots)
@warn("seriestype $st has been moved to StatsPlots. To use: \`Pkg.add(\"StatsPlots\"); using StatsPlots\`")
end
return
end

Expand Down
52 changes: 0 additions & 52 deletions src/shorthands.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,24 +107,6 @@ julia> histogram2d(randn(10_000),randn(10_000))
"""
@shorthands histogram2d

"""
density(x)
density!(x)

Make a line plot of a kernel density estimate of x.

# Arguments

- `x`: AbstractVector of samples for probability density estimation

# Example
```julia-repl
julia> using StatsPlots
julia> density(randn(100_000))
```
"""
@shorthands density

"""
heatmap(x,y,z)
heatmap!(x,y,z)
Expand Down Expand Up @@ -342,40 +324,6 @@ plot(x,y,z,seriestype=:mesh3d;connections=(i,j,k))
"""
@shorthands mesh3d

"""
boxplot(x, y)
boxplot!(x, y)

Make a box and whisker plot.

# Keyword arguments
- `notch`: Bool. Notch the box plot? (false)
- `range`: Real. Values more than range*IQR below the first quartile
or above the third quartile are shown as outliers (1.5)
- `outliers`: Bool. Show outliers? (true)
- `whisker_width`: Real or Symbol. Length of whiskers (:match)

# Example
```julia-repl
julia> using StatsPlots
julia> boxplot(repeat([1,2,3],outer=100),randn(300))
```
"""
@shorthands boxplot

"""
violin(x,y,z)
violin!(x,y,z)

Make a violin plot.

# Example
```julia-repl
julia> violin(repeat([1,2,3],outer=100),randn(300))
```
"""
@shorthands violin

"""
quiver(x,y,quiver=(u,v))
quiver!(x,y,quiver=(u,v))
Expand Down