Skip to content

Commit db1a9e2

Browse files
update usage of discrete_values! (#499)
1 parent 5052e4f commit db1a9e2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Interpolations = "0.12, 0.13"
3232
KernelDensity = "0.5, 0.6"
3333
MultivariateStats = "0.9"
3434
Observables = "0.2.2, 0.3, 0.4, 0.5"
35-
Plots = "0.28, 0.29, 1.0"
35+
Plots = "1.29"
3636
RecipesBase = "0.6, 0.7, 0.8, 1"
3737
RecipesPipeline = "0.1.6, 0.2, 0.3, 0.4, 0.5"
3838
Reexport = "0.2, 1.0"

src/boxplot.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ notch_width(q2, q4, N) = 1.58 * (q4-q2)/sqrt(N)
5050
end
5151

5252
# make the shape
53-
center = Plots.discrete_value!(plotattributes[:subplot][:xaxis], glabel)[1]
53+
center = Plots.discrete_value!(plotattributes, :x, glabel)[1]
5454
hw = 0.5_cycle(bw, i) # Box width
5555
HW = 0.5_cycle(ww, i) # Whisker width
5656
l, m, r = center - hw, center, center + hw

src/dotplot.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# filter y
3030
groupy = y[filter(i -> _cycle(x,i) == grouplabel, 1:length(y))]
3131

32-
center = Plots.discrete_value!(plotattributes[:subplot][:xaxis], grouplabel)[1]
32+
center = Plots.discrete_value!(plotattributes, :x, grouplabel)[1]
3333
halfwidth = 0.5_cycle(barwidth, i)
3434

3535
offsets = getoffsets(halfwidth, groupy)

src/violin.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ get_quantiles(n::Int) = range(0, 1, length = n + 2)[2:end-1]
4747
widths = hw * widths / Plots.ignorenan_maximum(widths)
4848

4949
# make the violin
50-
xcenter = Plots.discrete_value!(plotattributes[:subplot][:xaxis], glabel)[1]
50+
xcenter = Plots.discrete_value!(plotattributes, :x, glabel)[1]
5151
xcoords = if (side==:right)
5252
vcat(widths, zeros(length(widths))) .+ xcenter
5353
elseif (side==:left)

0 commit comments

Comments
 (0)