Skip to content

Commit c9aca76

Browse files
authored
Merge pull request #63 from JuliaConstraints/dev
Fix congested printing of xticks
2 parents 2234fc2 + 04cc1b8 commit c9aca76

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PerfChecker"
22
uuid = "6309bf6b-a531-4b08-891e-8ee981e5c424"
33
authors = ["Azzaare <[email protected]>"]
4-
version = "0.2.3"
4+
version = "0.2.4"
55

66
[deps]
77
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"

ext/MakieExt/allocs.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ function PerfChecker.checkres_to_scatterlines(
8181
diff += step
8282
end
8383
ax.title = x.pkgs[1].name
84+
ax.xticklabelrotation = 45.0
8485
Legend(f[1, 2], ax)
8586
return f
8687
end

ext/MakieExt/bench.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ function PerfChecker.checkres_to_scatterlines(
4343
ax.xlabel = "versions"
4444
ax.ylabel = "ratio"
4545
ax.title = "Evolution for $(x.pkgs[1].name) (via BenchmarkTools.jl)"
46+
ax.xticklabelrotation = 45.0
4647
f[1, 2] = Legend(f, ax)
4748
return f
4849
end
@@ -67,6 +68,7 @@ function PerfChecker.checkres_to_boxplots(
6768
ax.ylabel = string(kwarg)
6869
boxplot!(datax, datay, label = string(kwarg))
6970
ax.title = x.pkgs[1].name
71+
ax.xticklabelrotation = 45.0
7072
f[1, 2] = Legend(f, ax)
7173
return f
7274
end

ext/MakieExt/chair.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ function PerfChecker.checkres_to_scatterlines(
1818
versionnums = [x.pkgs[i].version for i in eachindex(x.pkgs)]
1919

2020
f = Figure()
21+
if iszero(data)
22+
return f
23+
end
24+
2125
ax = f[1, 1] = Axis(f)
2226
colors = make_colors(length(props))
2327
max = 2
@@ -43,6 +47,7 @@ function PerfChecker.checkres_to_scatterlines(
4347
ax.xlabel = "versions"
4448
ax.ylabel = "ratio"
4549
ax.title = "Evolution for $(x.pkgs[1].name) (via Chairmarks.jl)"
50+
ax.xticklabelrotation = 45.0
4651
f[1, 2] = Legend(f, ax)
4752
return f
4853
end
@@ -68,6 +73,7 @@ function PerfChecker.checkres_to_boxplots(
6873
ax.ylabel = string(kwarg)
6974
boxplot!(datax, datay, label = string(kwarg))
7075
ax.title = x.pkgs[1].name
76+
ax.xticklabelrotation = 45.0
7177
f[1, 2] = Legend(f, ax)
7278
return f
7379
end

0 commit comments

Comments
 (0)