Polar heatmap for angles between 0 and 90°?

Using Julia 1.11. In a perfect world I would expect the script below to deliver a heatmap in a quarter of disk. But I get a full disk. I tried to adjust the limits. since specifying ylim will adjust the range for the radius, i would expect xlim to set the range for the angles. But specifying xlim does not make any difference.

using Plots
rs=0:10.      #radius
as=0:10:90 #angles
amp=[r for a in as, r in rs]
heatmap(as,rs, amp ; projection = :polar)

Any idea?

You need to convert as from degrees to radians.

Thanks!

heatmap(as*π/180,rs, amp ; aspect_ratio=:equal, projection = :polar,xlim=(0,π/2))

Plots the heatmap in a quarter of disk, indeed.

However, the overall plot is still a disk with ticks running from 0 to 360°:

xticks!(:none) 

or

xticks!([0,π/2])

do not change the output.

Not an answer to your question, but a possible alternative: I’ve had pretty good luick using Makie’s PolarAxis for these kinds of plots, especially when very particular customizations are desired.

However, the one who seeks will find.