file (1. arg) will create (scatter plot) for n. column (x-axis, 2. arg) and m. column (y-axis, 3. arg)
function is called myfun sourcefile 1 3 for scatter plot of 1. and 3. column from file sourcefile.
#!/bin/bash/gnuplot
myfun(){
plot "$1" using $2:$3
}
myfun sourcefile 1 3
In gnuplot> plot sourcefile using 1:3 works perfectly. I want it to run inside the function. How?