# Makie visualize heat distribution on surface

**URL:** <https://discourse.julialang.org/t/makie-visualize-heat-distribution-on-surface/19541>\
**Category:** General Usage\
**Created:** [January 11, 2019, 9:14pm UTC](https://discourse.julialang.org/t/makie-visualize-heat-distribution-on-surface/19541 "2019-01-11T21:14:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jw3126](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jw3126/32/3086_2.png) [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Post date:** [January 11, 2019, 9:14pm UTC](https://discourse.julialang.org/t/makie-visualize-heat-distribution-on-surface/19541/1 "2019-01-11T21:14:55Z")

</div>

I would like to plot a heat distribution on a 2d sphere, something like [this](https://upload.wikimedia.org/wikipedia/commons/e/ec/Spherical_harmonics.png). Here is what I tried:

```julia
using Makie

n = 50
m = 2n
θ = range(0,stop=π, length=n)
φ = range(0, stop=2π, length=m)

x = [sin(θ)*cos(φ) for θ in θ, φ in φ]
y = [sin(θ)*sin(φ) for θ in θ, φ in φ]
z = [cos(θ) for θ in θ, φ in φ]

y44(θ,φ) = 3/ 16 * √(35/( 2π)) * exp(4im*φ)*sin(θ)^4
vals = [y44(θ, φ) for θ in θ, φ in φ]

function scale01(xs)
    mi, ma = extrema(xs)
    (xs .- mi) ./ (ma - mi)
end
c = Float32.(scale01(real.(vals))) * RGBf0(1,1,1)

surface(x, y, z, color=c)

```

However I am not completely satisfied with the result. It seems that Makie does not show exactly the colors given by `c` but instead adds some extra effects (a light source?). Can I suppress these extra effects?
