Skip to content

Commit

Permalink
Fix _lookup_to_vector and _lookup_to_interval (#776)
Browse files Browse the repository at this point in the history
* Fix lookup bug

* Add some tests

* recipes
  • Loading branch information
ptiede authored and rafaqz committed Sep 1, 2024
1 parent 97d93c0 commit cbb9d96
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/plotrecipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,19 @@ end
A2m[3] = missing
A2rgb = rand(RGB, X(10:10:100), Y(['a', 'b', 'c']))

#Test whether the conversion functions work
#TODO once surface2 is corrected to use the plottrait this should
#already be tested with the usual plotting functions
M.convert_arguments(M.CellGrid(), A2)
M.convert_arguments(M.VertexGrid(), A2)
M.convert_arguments(M.ImageLike(), A2)

M.convert_arguments(M.CellGrid(), A2u)
M.convert_arguments(M.VertexGrid(), A2u)
M.convert_arguments(M.ImageLike(), A2u)



fig, ax, _ = M.plot(A2)
M.plot!(ax, A2)
fig, ax, _ = M.plot(A2m)
Expand Down

0 comments on commit cbb9d96

Please sign in to comment.