我在用日志 CORORBAR
gnuplot.jl
的绘制热图中遇到问题。我当前使用以下代码
using Gnuplot
@gp P_save "w image notit" "set logscale cb"
生成以下图

我需要用它的问题替换y轴实际值(使用另一个称为 depth
的向量),而不是使用0到150的索引。 depth
具有非均匀的网格。
并为X轴执行同样的操作。
我已经查看了这两篇文章在此处输入链接说明 and and enter链接在这里。但是就我而言,我没有外部文件,数据在可变数组或向量中。
p_save
是150×731 矩阵{float64}
, depth
是150元素 vector> vector
。
我是两个 gnuplot.jl
和 gnuplot
的新手。
太感谢了!
I have a problem plotting heatmap with log colorbar
with Gnuplot.jl
. I currently use the following code
using Gnuplot
@gp P_save "w image notit" "set logscale cb"
which generates the following figure

The problem is I need to replace y axis with its real value (using another vector called Depth
) rather than using index from 0 to 150. And Depth
has Non-uniform grid.
And do the same for x axis too.
I have looked at these two posts enter link description here and enter link description here. But in my case I don't have external files and data are in variable arrays or vectors.
P_save
is 150×731 Matrix{Float64}
, Depth
is a 150-element Vector
.
I am very new to both Gnuplot.jl
and gnuplot
.
Thank you so much!
发布评论