如何在Gnuplot中缩放轴 [英] How to scale the axes in Gnuplot

查看:68
本文介绍了如何在Gnuplot中缩放轴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
如何在Gnuplot中缩放轴

我有很多x和y轴(1000、2000等),但是我希望重写或重新缩放这些轴,而不更改或缩放数据,例如,该轴上的1000为1,依此类推.我不是在寻找1x10 ^ 3.只是让1000为1.有什么办法可以做到?

I have the x and y axes with large numbers (1000, 2000, etc.) But I wish to re-write or re-scale these without changing or rescaling the data, such that 1000 is 1 in the axis, etc. I'm not looking for 1x10^3. Just letting 1000 be 1. Is there any way I could do that?

推荐答案

最简单的方法是重新缩放输入数据:

The easiest thing to do is rescale the data on input:

plot 'datafile' using ($1/1000.):2  #assume x-data is in first column

就gnuplot而言,您给了它1.,而不是1000.

Now as far as gnuplot is concerned, you gave it 1., not 1000.

这篇关于如何在Gnuplot中缩放轴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆