Skip to content

Commit

Permalink
Merge pull request #1260 from bjarthur/fix7
Browse files Browse the repository at this point in the history
fix tests on julia 0.7
  • Loading branch information
bjarthur authored Mar 12, 2019
2 parents 2cbd6d4 + dd3a3a3 commit 31b24b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/statistics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ function apply_statistic(stat::BoxplotStatistic,

isa(aes_x, IndirectArray) && (aes.x = discretize_make_ia(aes.x, aes_x.values))

colorflag && (aes.color = discretize_make_ia(first.(keys(grouped_y)), aes.color.values))
colorflag && (aes.color = discretize_make_ia([first(k) for k in keys(grouped_y)], aes.color.values))

Stat.apply_statistic(Stat.dodge(), scales, coord, aes)

Expand Down Expand Up @@ -2060,7 +2060,7 @@ function apply_statistic(stat::DodgeStatistic,

if stat.position==:dodge
nbars == length(aes.color) && return
offset = range(-0.5+0.5/nbars, 0.5, step=1/nbars)
offset = range(-0.5+0.5/nbars, stop=0.5, step=1/nbars)
dodge = getindex(offset, aes.color.index)
setfield!(aes, stat.axis, vals.+dodge)
elseif stat.position==:stack
Expand Down

0 comments on commit 31b24b3

Please sign in to comment.