Skip to content

Commit

Permalink
fix x and y axes are switched
Browse files Browse the repository at this point in the history
The x and y axes ticks labels were switched. I think this should fix it.
  • Loading branch information
dazsmith committed Oct 19, 2021
1 parent 1eba8f4 commit 210bdd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plotrecipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

seriestype := :heatmap
xticks := (LinRange(0, no_pixels[1], no_ticks[1]),
round.(LinRange(imag(z_lowerright), imag(z_upperleft), no_ticks[1]), sigdigits=ticks_sigdigits))
round.(LinRange(real(z_lowerright), real(z_upperleft), no_ticks[1]), sigdigits=ticks_sigdigits))
yticks := (LinRange(0, no_pixels[2], no_ticks[2]),
reverse!(round.(LinRange(real(z_upperleft), real(z_lowerright), no_ticks[2]), sigdigits=ticks_sigdigits)))
reverse!(round.(LinRange(imag(z_upperleft), imag(z_lowerright), no_ticks[2]), sigdigits=ticks_sigdigits)))

img
end
Expand Down Expand Up @@ -58,4 +58,4 @@ function crop_to_circle!(A:Array; radius=0, background_color=RGB{Float64}(1.0,1.
return A
end
"""
"""

0 comments on commit 210bdd0

Please sign in to comment.