我使用Gadfly软件包中的spy函数来绘制热图或值矩阵。
我希望为每列显示一个特定的字符串,但我找不到正确的语法
plt = Gadfly.spy(mtx, x= ["a","b","c","d"]) #suppose mtx has 4 columns
谢谢!
答案 0 :(得分:2)
using Gadfly
parameters = ["ξ₁", "η₁", "ξ₂", "η₂"]
spy(rand(4,4), Scale.y_discrete(labels = i->parameters[i]), Scale.x_discrete,
Guide.ylabel("Parameters"), Guide.xlabel("Mode"))