Nat*_*ath 6 plot heatmap julia plotly
我不确定为什么以下最小工作示例会输出热图
using Plots
plotlyjs()
List_x = [1, 2, 3]
List_y = [1, 2]
List_f = [0 0 0; 1 2 3]
my_plot = heatmap(List_x, List_y, List_f,
xlabel = "x axis", ylabel = "y_axis")
display(my_plot)
readline()
Run Code Online (Sandbox Code Playgroud)
取决于我是从 IDE(VSCode 或 Atom)运行代码,还是从终端运行代码
>>> julia MWE.jl
Run Code Online (Sandbox Code Playgroud)
在 IDE 情况下,我得到
在终端情况下我得到
正如您所看到的,这两种情况之间存在转置。我希望始终拥有 IDE 行为,我可以对此做些什么吗?
小智 0
此行为是由于https://github.com/JuliaPlots/Plots.jl/issues/3940中报告的错误造成的,在https://github.com/JuliaPlots/Plots.jl/pull/3953中修复,并在Plots.jl v1.24.2。在最新版本中,REPL(终端)图现在如下所示: