On Mon, 11 Aug 2014, Artur T. wrote: > Thank you, Allin; this works. > What I am wondered aboit ist that on Linux the error message is much > clearer and helpful than on Windows. The one linux is: > > <ERROR> > plot \ > ^ > "/home/artur/.gretl/gpttmp.LQy4tc", line 25: invalid character \ > > *** error in function DMplot, line 53 >> gnuplot > </ERROR> > > The one on Windows was not really helpful. But I guess this is > gnuplot-related, right?
Not so much gnuplot-related as an operating system issue. Gnuplot produces quite informative error messages on stderr. These are easy to capture on unix-type systems, but basically Windows doesn't do stderr. There are some avenues we could explore to get hold of the messages, but they're complicated. Allin > Am 11.08.2014 um 18:33 schrieb Allin Cottrell: >> On Mon, 11 Aug 2014, Artur T. wrote: >> >>> I trying to plot a matrix where the last two columns contain information on >>> confidence intervals which I would like to plot as a shaded area. >>> >>> I wrote a script, but the pdf is not properly compiled giving me an error >>> msg which I don't fully understand. I attached a script which requires the >>> matrix to plot and the path where to store the pdf as inputs. >>> >>> Unfortunately I can't figure out where the error is. >> >> When you want to write a backslash for line-continuation in a gnuplot >> script via gretl's "printf" command, you need to double it since backslash >> is the escape character. So, for example: >> >> printf "plot \\\n" >> printf "'-' using 1:2:3 w filledcurve lt 8, \\\n" >> >> and so on. >> >> Allin Cottrell
