Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #552
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: Plotting into table with multiple columns |
| Followup-To | comp.graphics.apps.gnuplot |
| Date | 2011-08-27 22:56 -0700 |
| Organization | gnuplot development team |
| Message-ID | <j3clfl$684$1@dont-email.me> (permalink) |
| References | <9brre9Fvf3U1@mid.individual.net> |
Followups directed to: comp.graphics.apps.gnuplot
Ingo Thies wrote:
> 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.
Not in version 4.4.
Yes in version 4.5:
increment = whatever
x = start
do for [i=1:N] {
print f1(x), f2(x), f3(x), f4(x), ...
x = x + increment
}
> 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
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
Plotting into table with multiple columns Ingo Thies <ingo.thies@gmx.de> - 2011-08-27 11:24 +0200
Re: Plotting into table with multiple columns Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2011-08-27 13:41 +0200
Re: Plotting into table with multiple columns Ingo Thies <ingo.thies@gmx.de> - 2011-08-27 17:04 +0200
Re: Plotting into table with multiple columns sfeam <sfeam@users.sourceforge.net> - 2011-08-27 22:56 -0700
Re: Plotting into table with multiple columns Ingo Thies <ingo.thies@gmx.de> - 2011-08-28 12:59 +0200
Re: Plotting into table with multiple columns Christoph Bersch <usenet@bersch.net> - 2011-09-02 10:23 +0200
Re: Plotting into table with multiple columns "EAMerritt@gmail.com" <eamerritt@gmail.com> - 2011-09-21 16:43 -0700
Re: Plotting into table with multiple columns Ingo Thies <ingo.thies@gmx.de> - 2011-10-08 13:16 +0200
set palette cubehelix Ingo Thies <ingo.thies@gmx.de> - 2011-10-08 13:55 +0200
Re: set palette cubehelix sfeam <sfeam@users.sourceforge.net> - 2011-10-08 10:48 -0700
Re: set palette cubehelix sfeam <sfeam@users.sourceforge.net> - 2011-10-08 14:30 -0700
csiph-web