On 12/05/2011 12:45 PM, Riccardo (Jack) Lucchetti wrote:
On Mon, 5 Dec 2011, Sven Schreiber wrote:
> sprintf strColindices "%d", seq(1,cols(mymatrix))
> gnuplot @strColindices --with-lines <etc>
A technical note to Sven's idea: the problem is not the space (or lack
thereof): a print format like "%3d" would have solved the problem; the
problem is that when you "printf" a matrix, a newline is automtically
appended, which confuses the gnuplot command.
Hm, I see. I seem to remember a special backspace character \b -- would
it work to add that to the string, in the hope of deleting the appended
newline character \n?
Alternatively, would it work to process strColindices further with:
strsub(strColindices,"\n","")
?
(BTW: I don't understand the help text for strsplit().)
Thanks,
Sven