Skip to content

Commit

Permalink
Fix some reprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasnoack committed Jan 22, 2018
1 parent 0348deb commit ea27bfd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/statistics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ function apply_statistic(stat::BoxplotStatistic,

if stat.method == :tukey
aes.lower_hinge[i], aes.middle[i], aes.upper_hinge[i] =
quantile(ys, [0.25, 0.5, 0.75])
quantile.(ys, [0.25, 0.5, 0.75])
iqr = aes.upper_hinge[i] - aes.lower_hinge[i]

idx = searchsortedfirst(ys, aes.lower_hinge[i] - 1.5iqr)
Expand Down Expand Up @@ -1628,7 +1628,7 @@ function apply_statistic(stat::BinMeanStatistic,

Gadfly.assert_aesthetics_defined("Stat.binmean", aes, :x, :y)

breaks = quantile(aes.x, collect(1:stat.n)/stat.n)
breaks = quantile.(aes.x, collect(1:stat.n)/stat.n)

Tx = eltype(aes.x)
Ty = eltype(aes.y)
Expand Down
1 change: 1 addition & 0 deletions test/REQUIRE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
RDatasets
Cairo
Fontconfig
CSV
4 changes: 2 additions & 2 deletions test/testscripts/issue120.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Gadfly, DataFrames, Compat
using Gadfly, DataFrames, Compat, CSV

set_default_plot_size(6inch, 3inch)

plot(readtable(joinpath(dirname(@__DIR__), "data","issue120.csv")), x=:x1, y=:x2)
plot(CSV.read(joinpath(dirname(@__DIR__), "data","issue120.csv")), x=:x1, y=:x2)

0 comments on commit ea27bfd

Please sign in to comment.