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:
x^2
plot \"filename\" usi
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.