I am having trouble to find out how to get the pixel coordinates for a given angle.
julia> using Plots
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
julia> m = HealpixMap{Float64, RingOrder}(32);
julia> m[ang2pixRing(m.resolution, π/4, 0.0)] = 250
250
julia> m[ang2pixRing(m.resolution, 0.42, 0.23)] = 300
300
julia> plot(m)
julia> annotate!(π/4, 0.0, "some text")
Here, obviously annotate! is not printed in the coordinate system of the plot. I found ang2pix but that only gives the pixel number. How can I find the "plot coordinate" for a given angle or vector?
I am having trouble to find out how to get the pixel coordinates for a given angle.
Here, obviously
annotate!is not printed in the coordinate system of the plot. I foundang2pixbut that only gives the pixel number. How can I find the "plot coordinate" for a given angle or vector?