如何使用 Winston 在 Julia 中创建极地热图

How to create a polar heatmap in Julia using Winston

尝试使用 Winston 在 Julia 中绘制热图。以下代码可以满足我的需要:

using Winston
colormap("jet") #could be any other cmap
p = imagesc(B)

在这里,B 是一个包含我的值的二维数组。但是,B 的轴是极轴 (r, $\theta$),而 Winston 将它们视为矩形 (x, y)。我能做什么?

Plots.jl 包有一个 :polar 属性修饰符来绘制函数,但 Winston 没有。如果您想使用 Winston,您可能应该为此目的通过代数函数自行将数据转换为直角坐标。