请告诉我如何绘制这张图,以便我可以操作y坐标?
例如:
之前的:
plot inputFullPath using 1:2 with lines ls 3 notitle
之后的
function func(y)
{
return y * 3.14 + y * y / 1000;
}
plot inputFullPath using 1:my_func(2) with lines ls 3 notitle
发布于 2019-02-22 04:36:31
my_func(y) = y * pi + y*y / 1000.
plot inputFullPath using 1:(my_func($2)) with lines
请注意,"pi“是一个预定义的变量,最安全的做法是将小数点放在浮点常量之后。
https://stackoverflow.com/questions/54815642
复制相似问题