Skip to content

Commit

Permalink
test other input options
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer committed Jul 29, 2024
1 parent 7d7dd1c commit 3f3ea48
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions ReferenceTests/src/tests/primitives.jl
Original file line number Diff line number Diff line change
Expand Up @@ -709,8 +709,19 @@ end

f = Figure()
heatmap(f[1, 1], 1:4, 1:4, img, colormap = :viridis)
heatmap(f[2, 1], 1:4, 4:-1:1, img, colormap = :viridis)
heatmap(f[2, 1], 1:4, 4..1, img, colormap = :viridis)
heatmap(f[1, 2], 4:-1:1, 1:4, img, colormap = :viridis)
heatmap(f[2, 2], 4:-1:1, 4:-1:1, img, colormap = :viridis)
heatmap(f[2, 2], 4:-1:1, [4, 3, 2, 1], img, colormap = :viridis)
f
end

@reference_test "Reverse image axes" begin
img = [2 0 0 3; 0 0 0 0; 1 1 0 0; 1 1 0 4]

f = Figure()
image(f[1, 1], 1:4, 1:4, img, colormap = :viridis)
image(f[2, 1], 1:4, 4..1, img, colormap = :viridis)
image(f[1, 2], 4:-1:1, 1:4, img, colormap = :viridis)
image(f[2, 2], 4:-1:1, [4, 3, 2, 1], img, colormap = :viridis)
f
end

0 comments on commit 3f3ea48

Please sign in to comment.