Skip to content

Commit

Permalink
modify tooltip reference test
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarthur committed Oct 21, 2024
1 parent 18c621e commit 275aa72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ReferenceTests/src/tests/examples2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,8 @@ end

@reference_test "Tooltip" begin
fig, ax, p = scatter(Point2f(0,0))
xlims!(ax, -10, 10)
ylims!(ax, -5, 5)
xlims!(ax, -15, 5)
ylims!(ax, -7, 3)
tt = tooltip!(ax, Point2f(0), text = "left", placement = :left)
tt.backgroundcolor[] = :red
tooltip!(
Expand All @@ -706,6 +706,7 @@ end
outline_linewidth = 5, offset = 30, triangle_size = 15,
strokewidth = 2f0, strokecolor = :cyan
)
tooltip!(ax, "i'm an axis", placement=:center)
fig
end

Expand Down
2 changes: 1 addition & 1 deletion test/makielayout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -550,5 +550,5 @@ end
a, s = scatter(f[1,2], [1,2,3])
tooltip!(a, "I'm an Axis", placement = :center)
b = Button(f[1,3])
tooltip!(b, "I'm a Button", placement = :qwerty)
tooltip!(b, "I'm a Button", placement = :prints_error_assume_above)
end

0 comments on commit 275aa72

Please sign in to comment.