Skip to content

Commit 98ad143

Browse files
committed
bump cov
1 parent 1ee17a4 commit 98ad143

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

StatsPlots/ext/InteractExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function StatsPlots.dataviewer(t; throttle = 0.1, nbins = 30, nbins_range = 1:10
1010
coltable = map(TableOperations.Tables.columntable, t)
1111

1212
names = map(collect keys, coltable)
13-
@show names
13+
# @show names
1414

1515
dict = Observables.@map Dict((key, val) for (key, val) pairs(&coltable))
1616
x = Widgets.dropdown(names; placeholder = "First axis", multiple = true)

StatsPlots/src/StatsPlots.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ include("errorline.jl")
5050

5151
function dataviewer end # InteractExt
5252

53-
end # module
53+
end # module

StatsPlots/test/runtests.jl

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ using Distributions
33
using StableRNGs
44
using Clustering
55
using PlotsBase
6+
using StatsBase
67
using RDatasets
78
using Interact
89
using NaNMath
@@ -238,6 +239,13 @@ end
238239
end
239240

240241
@testset "violin" begin
242+
y = [i * randn(StableRNG(1337), 100) for i 1:4]
243+
violin(y, median = true)
244+
violin(y, quantiles = [0.1, 0.5, 0.9], linecolor = :white, linewidth = 3)
245+
violin(y, quantiles = 3, mean = true)
246+
end
247+
248+
@testset "violin df" begin
241249
pl = violin(repeat([0.1, 0.2, 0.3], outer = 100), randn(StableRNG(1337), 300), side = :right)
242250
@test show(devnull, pl) isa Nothing
243251

@@ -251,7 +259,7 @@ end
251259
y = (1:20) .+ randn(20),
252260
g = repeat(["Group 1", "Group 2"], inner = 5, outer = 2)
253261
)
254-
@df df groupedviolin(:x, :y, group = :g)
262+
@df df groupedviolin(:x, :y; group = :g)
255263
end
256264

257265
@testset "density" begin
@@ -260,7 +268,7 @@ end
260268
end
261269

262270
@testset "covellipse" begin
263-
pl = covellipse([0, 2], [2 1; 1 4]; n_std = 2, aspect_ratio = 1, label = "cov1")
271+
pl = covellipse([0, 2], [2 1; 1 4]; n_std = 2, showaxes = true, label = "cov1")
264272
@test show(devnull, pl) isa Nothing
265273
end
266274

@@ -282,7 +290,7 @@ end
282290
end
283291

284292
@testset "boxplot / dotplot / violin" begin
285-
@df singers violin(string.(:VoicePart), :Height, linewidth = 0)
293+
@df singers violin(string.(:VoicePart), :Height, show_mean = true, show_median = true)
286294
@df singers boxplot!(string.(:VoicePart), :Height, fillalpha = 0.75, linewidth = 2)
287295
@df singers dotplot!(string.(:VoicePart), :Height, marker = (:black, stroke(0)))
288296
@test true

0 commit comments

Comments
 (0)