Skip to content

Commit

Permalink
start adding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Dec 8, 2022
1 parent 754d6c2 commit 0a7ac18
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ReferenceTests/src/tests/examples2d.jl
Expand Up @@ -271,6 +271,25 @@ end
st
end

@reference_test "Label rotations" begin
N = 18 # number of rotations
fig, ax, _ = scatter(0:1; axis = (; xlabel = "a nice and long x label for this axis", ylabel = "a nice and long y label for this axis"))
st = Stepper(fig)

#=
record(fig, "rot.gif") do io
for rot in LinRange(0, 2π, N)
ax.xlabelrotation[] = rot
ax.ylabelrotation[] = rot
recordframe!(io)
end
end
=#

Makie.step!(st)
st
end

@reference_test "Errorbars x y low high" begin
x = 1:10
y = sin.(x)
Expand Down
2 changes: 2 additions & 0 deletions src/makielayout/types.jl
Expand Up @@ -503,6 +503,8 @@ end
labelvisible = true
"The gap between the label and the ticks."
labelpadding = 5f0
"The label rotation in radians."
labelrotation = 0f0
"The font family of the tick labels."
ticklabelfont = :regular
"The font size of the tick labels."
Expand Down

0 comments on commit 0a7ac18

Please sign in to comment.