Please explain this code in Mathematica that creates a heat / intensity map
问题 Graphics@Flatten[Table[ (*colors, dont mind*) {ColorData["CMYKColors"][(a[[r, t]] - .000007)/(.0003 - 0.000007)], (*point size, dont mind*) PointSize[1/Sqrt[r]/10], (*Coordinates for your points "a" is your data matrix *) Point[ {(rr =Log[.025 + (.58 - .25)/64 r]) Cos@(tt = t 5 Degree), rr Sin@tt}] } &@ (*values for the iteration*) , {r, 7, 64}, {t, 1, 72}], 1] (*Rotation, dont mind*) /. gg : Graphics[___] :> Rotate[gg, Pi/2] 回答1: Okay, I'll bite. First, Mathematica allows functions to be