diff --git a/Project.toml b/Project.toml index 9c4d928..8d91a3f 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "PerfChecker" uuid = "6309bf6b-a531-4b08-891e-8ee981e5c424" authors = ["Azzaare "] -version = "0.2.3" +version = "0.2.4" [deps] CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b" diff --git a/ext/MakieExt/allocs.jl b/ext/MakieExt/allocs.jl index 9ab4490..19f9783 100644 --- a/ext/MakieExt/allocs.jl +++ b/ext/MakieExt/allocs.jl @@ -81,6 +81,7 @@ function PerfChecker.checkres_to_scatterlines( diff += step end ax.title = x.pkgs[1].name + ax.xticklabelrotation = 45.0 Legend(f[1, 2], ax) return f end diff --git a/ext/MakieExt/bench.jl b/ext/MakieExt/bench.jl index e9e9e02..4dc1f31 100644 --- a/ext/MakieExt/bench.jl +++ b/ext/MakieExt/bench.jl @@ -43,6 +43,7 @@ function PerfChecker.checkres_to_scatterlines( ax.xlabel = "versions" ax.ylabel = "ratio" ax.title = "Evolution for $(x.pkgs[1].name) (via BenchmarkTools.jl)" + ax.xticklabelrotation = 45.0 f[1, 2] = Legend(f, ax) return f end @@ -67,6 +68,7 @@ function PerfChecker.checkres_to_boxplots( ax.ylabel = string(kwarg) boxplot!(datax, datay, label = string(kwarg)) ax.title = x.pkgs[1].name + ax.xticklabelrotation = 45.0 f[1, 2] = Legend(f, ax) return f end diff --git a/ext/MakieExt/chair.jl b/ext/MakieExt/chair.jl index 9ac18f6..252ecc8 100644 --- a/ext/MakieExt/chair.jl +++ b/ext/MakieExt/chair.jl @@ -18,6 +18,10 @@ function PerfChecker.checkres_to_scatterlines( versionnums = [x.pkgs[i].version for i in eachindex(x.pkgs)] f = Figure() + if iszero(data) + return f + end + ax = f[1, 1] = Axis(f) colors = make_colors(length(props)) max = 2 @@ -43,6 +47,7 @@ function PerfChecker.checkres_to_scatterlines( ax.xlabel = "versions" ax.ylabel = "ratio" ax.title = "Evolution for $(x.pkgs[1].name) (via Chairmarks.jl)" + ax.xticklabelrotation = 45.0 f[1, 2] = Legend(f, ax) return f end @@ -68,6 +73,7 @@ function PerfChecker.checkres_to_boxplots( ax.ylabel = string(kwarg) boxplot!(datax, datay, label = string(kwarg)) ax.title = x.pkgs[1].name + ax.xticklabelrotation = 45.0 f[1, 2] = Legend(f, ax) return f end