gnuplot.jl热图轴标记不均匀网格

发布于 2025-02-11 05:05:51 字数 885 浏览 1 评论 0 原文

我在用日志 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

enter image description here

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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文