I have two curves as data points (i. e. a two sets of two-tuples). I want to splot the surface of their weighted sum, the weight being the third axis (so like a smooth transition from one curve to the other).
Example: If I have the functions sin(x) and x**2 / 100, I can achieve it like this:
set isosamples 100
splot [-10:10] [0:1] y * sin(x) + (1-y) * (x**2 / 100)
In my case, however, I do not have functions but values from a data file and I do not know how to combine this with an automatic running value like the weight y in the example above. I tried, e.g. this, but it did not work:
splot [] [0:1] 'datafile' using 1:(y):(y * $2 + (1-y) * $3)
The error I get is undefined variable: y (which is clear). I just don't know how to combine data from a data file and a running parameter.


