Gnuplot的图形跳转 [英] Gnuplot's Graphic Jump

查看:52
本文介绍了Gnuplot的图形跳转的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以避免在函数1/(2-x)中绘制近渐近线,例如,不使用进行条件绘制?想法是在此基础上绘制迭代函数,并且由于渐近线发生变化,因此使用条件绘图并不是一个好的解决方案.

is there a way to avoid the drawing of the near asymptote line in the function 1/(2-x), for example, without usage of conditional plotting? The idea is to draw iterated functions based in this one and, since asymptote changes, using conditional plotting isn't a good solution.

推荐答案

  1. 您可以以很高的采样率绘制with points:

set yrange [-10:10]
set samples 100000
plot 1/(2-x) with points

  1. 如果奇异性出现在不同的x值,则可以在y上使用条件绘图:

  1. If the singularity occurs at different values of x you can use conditional plotting on y:

f(x)=1/(2-x)
set samples 1000
plot (abs(f(x)) < 10 ? f(x) : 1/0) with lines

这篇关于Gnuplot的图形跳转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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