This commit is contained in:
Simon Christ 2022-04-25 21:50:47 +02:00
parent 3500bd345b
commit ffe7f9e23e

View File

@ -1,4 +1,4 @@
using Plots, Test
using Plots, Test, NaNMath
@testset "Series Attributes" begin
pl = plot([[1, 2, 3], [2, 3, 4]], lw = 5)
@ -16,3 +16,12 @@ end
@test pl[1][axis][:tickfontfamily] == "Times"
end
end
@testset "Permute recipes" begin
pl = bar(["a", "b", "c"], [1, 2, 3])
ppl = bar(["a", "b", "c"], [1, 2, 3], series_permutation = (:x, :y))
@test xticks(ppl) == yticks(pl)
@test yticks(pl) == xticks(ppl)
@test filter(isfinite, pl[1][1][:x]) == filter(isfinite, ppl[1][1][:y])
@test filter(isfinite, pl[1][1][:y]) == filter(isfinite, ppl[1][1][:x])
end