Gnuplot自动缩放的最小和最大边界 [英] Gnuplot minimum and maximum boundaries for autoscaling

查看:233
本文介绍了Gnuplot自动缩放的最小和最大边界的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何限制gnuplot的自动缩放,以便以y-max为例,它至少是某个值,并且会自动缩放到固定的限制"?

How can I limit the autoscaling of gnuplot, so that, as example for the y-max, it is at least a certain value and it would autoscale up to fixed "limit"?

通过查看文档,我只看到如何固定轴的最小或最大端,而另一个是自动缩放的.

From looking at the documentation, I only see how to fix min-, or max- end of the axis, while the other is being scaled automatically.

关于PDF第93页上的自动缩放

推荐答案

从4.6版开始,gnuplot提供了一种新语法来指定自动缩放的上限和下限.对于您的情况,您可以使用

Since version 4.6 gnuplot offers a new syntax to specify upper and lower limits for the autoscaling. For your case you could use

set xrange [0:100 < * < 1000]

从文档中引用:

执行自动缩放的范围可能受下限<lb>或上限<ub>或两者限制.语法是

The range in which autoscaling is being performed may be limited by a lower bound <lb> or an upper bound <ub> or both. The syntax is

{ <lb> < } * { < <ub> }

例如

0 < * < 200

设置<lb> = 0<ub> = 200.

该语法可以应用于set *range的最小值或最大值.

That syntax can be applied to both the minimum or maximum value of set *range.

要自动缩放xmin但要保持正值,请使用

To autoscale xmin but keeping it positive, use

set xrange [0<*:]

要自动缩放x,但要保持最小范围为10到50:

To autoscale x but keep minimum range of 10 to 50:

set xrange [*<10:50<*]

有关更多信息,请参阅有关set xrange的文档.

See the documentation about set xrange for more information.

这篇关于Gnuplot自动缩放的最小和最大边界的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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