gnuplot - 同一图表上的多个参数图或参数图和非参数图

标签 gnuplot

有什么办法吗

set size square
set parametric
set trange[-5:5]
plot ((((t-1)**2)-(4))/2),t

plot x-1

在同一张图上?

最佳答案

我认为“正常”图是“参数”的特例,您可以使用

set size square
set parametric
set trange [-5:5]
plot ((((t-1)**2)-(4))/2), t, t, t-1 t "x-1"

enter image description here

或不同的范围

set size square
set parametric
set trange [0:1]

# maps [0:1] -> [A:B]
p(t)= A + t*(B-A)

plot A=-5, B=5,  ((((p(t)-1)**2)-(4))/2), p(t), \
     A=-2, B=10, p(t),                    p(t)-1 t "x-1"

enter image description here

关于gnuplot - 同一图表上的多个参数图或参数图和非参数图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19500853/

相关文章:

Gnuplot 从数据文件列中读取线型

plot - 倍频程中的多个绘图调用

linux - 在 gnuplot 组多图上设置标签

r - Gnuplot 从样本中绘制多个箱线图

bash - 如何在 gnuplot 上将变量传递给 -e?

gnuplot - 如何通过字符串定义颜色名称以在 linecolour lc 中使用,不工作 gnuplot

gnuplot - `set xrange [x_min:x_max]` 是否限制用于函数拟合的范围?

plot - 在不使用十六进制代码的情况下在 gnuplot 中设置行不透明度

gnuplot - 带 pm3d 的总和调色板

gnuplot - 使用 Gnuplot 对缺失值的间隔进行着色