Restricting the domain of a function plotted on Gnuplot

后端 未结 2 1311
被撕碎了的回忆
被撕碎了的回忆 2020-12-30 05:48

I am plotting a set of data on Gnuplot, and want to superimpose the function x^2 on the same plot. I can do this like so:

plot \"filename\" usi         


        
2条回答
  •  一个人的身影
    2020-12-30 06:32

    I know that this is an old question, but for anyone who might be looking for an easier way:

    Your first idea

    plot "filename" using 1:2, [1:2] x**2
    

    works now.

提交回复
热议问题