StatPlots --> StatsPlots

This commit is contained in:
Michael Krabbe Borregaard 2019-01-24 23:24:17 +01:00
parent 42aa7d8d55
commit 399a9b16f6
7 changed files with 13 additions and 13 deletions

View File

@ -182,7 +182,7 @@ Many updates, min julia 1.0
- add `reset_defaults()` function to reset plot defaults - add `reset_defaults()` function to reset plot defaults
- update syntax to 0.6 - update syntax to 0.6
- make `fill = true` fill to 0 rather than to 1 - 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 - allow changing the color of legend box
- implement `title_location` for gr - implement `title_location` for gr
- add `hline` marker to pgfplots - fixes errorbars - add `hline` marker to pgfplots - fixes errorbars
@ -334,7 +334,7 @@ Many updates, min julia 1.0
- added dependency on PlotThemes - added dependency on PlotThemes
- set_theme --> theme - set_theme --> theme
- remove Compat from REQUIRE - remove Compat from REQUIRE
- warning for DataFrames without StatPlots - warning for DataFrames without StatsPlots
- closeall exported and implemented for gr/pyplot - closeall exported and implemented for gr/pyplot
- fix DateTime recipe - fix DateTime recipe
- reset theme with theme(:none) - reset theme with theme(:none)
@ -456,8 +456,8 @@ Many updates, min julia 1.0
#### 0.8.0 #### 0.8.0
- added dependency on PlotUtils - added dependency on PlotUtils
- BREAKING: removed DataFrames support (now in StatPlots.jl) - BREAKING: removed DataFrames support (now in StatsPlots.jl)
- BREAKING: removed boxplot/violin/density recipes (now in StatPlots.jl) - BREAKING: removed boxplot/violin/density recipes (now in StatsPlots.jl)
- GR: - GR:
- inline iterm2 support - inline iterm2 support
- trisurface support - trisurface support

View File

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

View File

@ -166,9 +166,9 @@ end
function _plot!(plt::Plot, plotattributes::KW, args::Tuple) function _plot!(plt::Plot, plotattributes::KW, args::Tuple)
plotattributes[:plot_object] = plt plotattributes[:plot_object] = plt
if !isempty(args) && !isdefined(Main, :StatPlots) && if !isempty(args) && !isdefined(Main, :StatsPlots) &&
first(split(string(typeof(args[1])), ".")) == "DataFrames" 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 end
# -------------------------------- # --------------------------------

View File

@ -586,7 +586,7 @@ end
end end
Plots.@deps stepbins path 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 function _auto_binning_nbins(vs::NTuple{N,AbstractVector}, dim::Integer; mode::Symbol = :auto) where N
_cl(x) = ceil(Int, max(x, one(x))) _cl(x) = ceil(Int, max(x, one(x)))

View File

@ -116,7 +116,7 @@ Make a line plot of a kernel density estimate of x.
# Example # Example
```julia-repl ```julia-repl
julia> using StatPlots julia> using StatsPlots
julia> density(randn(100_000)) julia> density(randn(100_000))
``` ```
""" """
@ -332,7 +332,7 @@ Make a box and whisker plot.
# Example # Example
```julia-repl ```julia-repl
julia> using StatPlots julia> using StatsPlots
julia> boxplot(repeat([1,2,3],outer=100),randn(300)) julia> boxplot(repeat([1,2,3],outer=100),randn(300))
``` ```
""" """

View File

@ -1,4 +1,4 @@
StatPlots StatsPlots
Images Images
ImageMagick ImageMagick
@osx QuartzImageIO @osx QuartzImageIO

View File

@ -18,7 +18,7 @@ end
using Plots using Plots
# using StatPlots # using StatsPlots
import PlotReferenceImages import PlotReferenceImages
using Random using Random
using Test using Test