diff --git a/NEWS.md b/NEWS.md index 15d2aaa2..7ce23298 100644 --- a/NEWS.md +++ b/NEWS.md @@ -182,7 +182,7 @@ Many updates, min julia 1.0 - add `reset_defaults()` function to reset plot defaults - update syntax to 0.6 - make `fill = true` fill to 0 rather than to 1 -- use new `@df` syntax in StatPlots examples +- use new `@df` syntax in StatsPlots examples - allow changing the color of legend box - implement `title_location` for gr - add `hline` marker to pgfplots - fixes errorbars @@ -334,7 +334,7 @@ Many updates, min julia 1.0 - added dependency on PlotThemes - set_theme --> theme - remove Compat from REQUIRE -- warning for DataFrames without StatPlots +- warning for DataFrames without StatsPlots - closeall exported and implemented for gr/pyplot - fix DateTime recipe - reset theme with theme(:none) @@ -456,8 +456,8 @@ Many updates, min julia 1.0 #### 0.8.0 - added dependency on PlotUtils -- BREAKING: removed DataFrames support (now in StatPlots.jl) -- BREAKING: removed boxplot/violin/density recipes (now in StatPlots.jl) +- BREAKING: removed DataFrames support (now in StatsPlots.jl) +- BREAKING: removed boxplot/violin/density recipes (now in StatsPlots.jl) - GR: - inline iterm2 support - trisurface support diff --git a/src/args.jl b/src/args.jl index 1065f12e..3285571b 100644 --- a/src/args.jl +++ b/src/args.jl @@ -1050,8 +1050,8 @@ function preprocessArgs!(plotattributes::KW) # warnings for moved recipes st = get(plotattributes, :seriestype, :path) - if st in (:boxplot, :violin, :density) && !isdefined(Main, :StatPlots) - @warn("seriestype $st has been moved to StatPlots. To use: \`Pkg.add(\"StatPlots\"); using StatPlots\`") + 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 diff --git a/src/plot.jl b/src/plot.jl index 7ac78601..2c2ecd48 100644 --- a/src/plot.jl +++ b/src/plot.jl @@ -166,9 +166,9 @@ end function _plot!(plt::Plot, plotattributes::KW, args::Tuple) plotattributes[:plot_object] = plt - if !isempty(args) && !isdefined(Main, :StatPlots) && + if !isempty(args) && !isdefined(Main, :StatsPlots) && first(split(string(typeof(args[1])), ".")) == "DataFrames" - @warn("You're trying to plot a DataFrame, but this functionality is provided by StatPlots") + @warn("You're trying to plot a DataFrame, but this functionality is provided by StatsPlots") end # -------------------------------- diff --git a/src/recipes.jl b/src/recipes.jl index 63a069c9..ff3090c0 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -586,7 +586,7 @@ end end Plots.@deps stepbins path -wand_edges(x...) = (@warn("Load the StatPlots package in order to use :wand bins. Defaulting to :auto", once = true); :auto) +wand_edges(x...) = (@warn("Load the StatsPlots package in order to use :wand bins. Defaulting to :auto", once = true); :auto) function _auto_binning_nbins(vs::NTuple{N,AbstractVector}, dim::Integer; mode::Symbol = :auto) where N _cl(x) = ceil(Int, max(x, one(x))) diff --git a/src/shorthands.jl b/src/shorthands.jl index 7c5d7003..5d240482 100644 --- a/src/shorthands.jl +++ b/src/shorthands.jl @@ -116,7 +116,7 @@ Make a line plot of a kernel density estimate of x. # Example ```julia-repl -julia> using StatPlots +julia> using StatsPlots julia> density(randn(100_000)) ``` """ @@ -332,7 +332,7 @@ Make a box and whisker plot. # Example ```julia-repl -julia> using StatPlots +julia> using StatsPlots julia> boxplot(repeat([1,2,3],outer=100),randn(300)) ``` """ diff --git a/test/REQUIRE b/test/REQUIRE index a11706d9..06f37166 100644 --- a/test/REQUIRE +++ b/test/REQUIRE @@ -1,4 +1,4 @@ -StatPlots +StatsPlots Images ImageMagick @osx QuartzImageIO diff --git a/test/imgcomp.jl b/test/imgcomp.jl index 526d695e..6d7dd457 100644 --- a/test/imgcomp.jl +++ b/test/imgcomp.jl @@ -18,7 +18,7 @@ end using Plots -# using StatPlots +# using StatsPlots import PlotReferenceImages using Random using Test