Setting the foreground color of colorbar tick marks

Here’s the simple code used in the example above:

using Plots; gr()

data = 0.01*randn(8,8)
p1 = heatmap(data, c=:bam25, foreground_color=:red, colorbar=false)

data2 = collect(range(extrema(data)..., 100))
p2 = heatmap([1], data2, [data2;;], c=:bam25, fg_color=:red, colorbar=false, xaxis=false, ymirror=true)

l = @layout [a{0.95w} b]
plot!(p1, p2, layout=l, tick_direction=:out)