How to plot a 2D rotated array

using   Images, Plots
s=0.05
yl = range(-5, stop= 5, step=s)
xl = range(-5, stop= 10, step=s)
x = [xe for ye in yl, xe in xl]
y = [ye for ye in yl, xe in xl]
z = @. sin(x)^10 + cos(10 + y*x) + cos(x) + 0.2*y + 0.1*x
pl= heatmap(z, c=:curl, size=(500, 300))
png("heatmap")
img= load("heatmap.png")
newimg = imrotate(img, pi/4, fillvalue=1)