Gnuplot x 轴缩放

发布于 2024-11-18 22:57:57 字数 494 浏览 2 评论 0原文

抱歉,标题表达不清,我想不出一个无需解释就足够的标题。

我有一个图表,其 x 轴的比例不相关。我想做的是有第二个 x 轴,我知道这是可能的,但缩放比例很奇怪。

第二个轴不用于绘制任何内容,我只需要顶部值与“重要”的轴对齐。假设我的轴分为 10 个不同的抽动,从 0 - 1000。

0--100--200--300--400--500--600--700--800--900- -1000

我希望第二个 x 轴执行此操作(这是棘手的部分):

0---0----0----0----0----0----0----0---100--200--500

我的想法是让值实际上也为 0-1000,但标签不同(用“0”作为 0,100,...,700 的标签,然后用“100”,“200”, “500”作为它们各自值的标签

我知道这是可能的 。直方图,但我不处理直方图,

谢谢!

Sorry about the poorly articulated title, I couldn't think of a title that would suffice without explaination.

I have a graph with an x axis with an irrelevant scale. What I want to do is have a second x-axis, which I know is possible, that is scaled strangely.

The second axis is not used in plotting anything, I just need the top values to align with the axis that "matters." Let's say that my axis is devided into 10 different tics, going from 0 - 1000.

0--100--200--300--400--500--600--700--800--900--1000

I would like the second x-axis to do this(heres the tricky part):

0---0----0----0----0----0----0----0---100--200--500

What I was thinking was having the values actually be 0-1000 as well, but have the label be different (having "0" as a label for 0,100,...,700 and then "100" , "200" , "500" as labels for their respective values.

I know it's possible in histograms, but I'm not dealing with histograms.

Thanks!

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吾性傲以野 2024-11-25 22:57:57

也许您正在寻找这个:

set x2range [0:1000]
set x2tics("0" 0, "0" 100, "0" 200, "0" 300, "0" 400, "0" 500, "0" 600, "0" 700, "100" 800, "200" 900, "500" 1000)

Perhaps you are looking for this:

set x2range [0:1000]
set x2tics("0" 0, "0" 100, "0" 200, "0" 300, "0" 400, "0" 500, "0" 600, "0" 700, "100" 800, "200" 900, "500" 1000)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文