Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!69.16.185.21.MISMATCH!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ingo Thies Newsgroups: comp.graphics.apps.gnuplot Subject: Plotting into table with multiple columns Date: Sat, 27 Aug 2011 11:24:24 +0200 Lines: 27 Message-ID: <9brre9Fvf3U1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 4OMsVicKh9NGoCaAIvPJ1wWIahJqfpeL+0E2oki27TAMfIP2pR Cancel-Lock: sha1:mzQomCHpdzxPq1ejN2FQ4CSvg14= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:5.0) Gecko/20110624 Thunderbird/5.0 Xref: x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:549 Hi all, maybe this has been discussed earlier, but I coulnd not find a thread about this. I want to redirect a plot into a table but such that all data are plotted as separate columns. I.e. consider, let's say, a number of functions f1 to fn, and the table should look like this col1 col2 col3 ... coln+1 x f1(x) f2(x) ... fn(x) (replace in mind these labels with the corresponding values) Currently, gnuplot writes them in blocks one after the other. I know that one can plot up to three columns using parametric mode and splot to table (this has been discussed here already, AFAIR), but unfortunately, I need four columns... Is it possible to use a print statement inside a for-loop? This would solve the problem. I could, of course, do this in an external program, but it would be nice and elegant to do this in the same gp script without invoking external self-written software. Thanks in advance! Ingo