Skip to content

Commit

Permalink
StatPlots --> StatsPlots
Browse files Browse the repository at this point in the history
  • Loading branch information
mkborregaard committed Jan 24, 2019
1 parent 42aa7d8 commit 399a9b1
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/args.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/plot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

# --------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
4 changes: 2 additions & 2 deletions src/shorthands.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
```
"""
Expand Down Expand Up @@ -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))
```
"""
Expand Down
2 changes: 1 addition & 1 deletion test/REQUIRE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
StatPlots
StatsPlots
Images
ImageMagick
@osx QuartzImageIO
Expand Down
2 changes: 1 addition & 1 deletion test/imgcomp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ end


using Plots
# using StatPlots
# using StatsPlots
import PlotReferenceImages
using Random
using Test
Expand Down

0 comments on commit 399a9b1

Please sign in to comment.