Skip to content

Commit

Permalink
fix img axes
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Feb 2, 2022
1 parent 2a7d2d7 commit 7620da6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ function clamp_greys!(mat::AMat{<:Gray})
end

@recipe function f(mat::AMat{<:Gray})
n, m = axes(mat)
n, m = map(a -> 0:(a.stop), axes(mat))
if is_seriestype_supported(:image)
seriestype := :image
yflip --> true
Expand All @@ -1398,7 +1398,7 @@ end

# images - colors
@recipe function f(mat::AMat{T}) where {T<:Colorant}
n, m = axes(mat)
n, m = map(a -> 0:(a.stop), axes(mat))

if is_seriestype_supported(:image)
seriestype := :image
Expand Down

0 comments on commit 7620da6

Please sign in to comment.