Hi,
I'm trying to define a 'function' that essentially is a plot command with
the filename as parameter. Please see the example at the end. I want to do
this to save myself from repeatedly having to use the same plot command (
I'm using it in a multiplot that plots data from several files into one
plot).
Anyhow, the way I'm trying it doesn't seem to work and I couldn't figure out
how to do it properly.
Thanks for your help.
Armin
Sample code:
scatterplot(f) = plot f using (column(1)-1.5*xsep):2 pt ptype lc clr1 ti '0
min',\
'' using (column(1)-0.5*xsep):14 pt ptype lc clr2 ti '30 min',\
'' using (column(1)+0.5*xsep):25 pt ptype lc clr3 ti '60 min',\
'' using (column(1)+1.5*xsep):72 pt ptype lc clr4 ti ' 180 min'
later in the script:
scatterplot('P8-00003.csv')
--
View this message in context: http://www.nabble.com/Using-plot-in-a-user-defined-function-tp24973552p24973552.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|