Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #550

Re: Plotting into table with multiple columns

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail
From Hans-Bernhard Bröker <HBBroeker@t-online.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Plotting into table with multiple columns
Date Sat, 27 Aug 2011 13:41:39 +0200
Lines 26
Message-ID <9bs3fiFqhuU1@mid.dfncis.de> (permalink)
References <9brre9Fvf3U1@mid.individual.net>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.dfncis.de lC0kZqzKQbTCSBKr9EDT4g+0tkcfPeVH+NxXCIR3qFdW6UwtSnnY9DG4oY
Cancel-Lock sha1:FKlgK62MoW2R4MH4sNmG46EpKxI=
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:6.0) Gecko/20110812 Thunderbird/6.0
In-Reply-To <9brre9Fvf3U1@mid.individual.net>
Xref x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:550

Show key headers only | View raw


On 27.08.2011 11:24, Ingo Thies wrote:

> 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)

There's a huge problem with that idea.  There's no particular reason 
every dataset should have the same number of samples, much less the same 
x positions.  Please keep in mind that functions in gnuplot are, 
effectively, just internal datafile generators.

> Is it possible to use a print statement inside a for-loop?

As soon as gnuplot actually gets for loops around commands: sure.  So 
far that hasn't been done, though.  What you get know are loop 
constructions _inside_ the plot command, which are an entirely different 
thing.

In the end, you're making the opposite of a very common mistake.  Many 
people out there abuse spreadsheets as plotting programs.  You appear to 
be trying to abuse gnuplot as a spreadsheet.

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

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