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


Groups > comp.graphics.apps.gnuplot > #1288 > unrolled thread

Plotting datapoints of different blocks in one graph

Started byGeorg <g.hasselberg@gmail.com>
First post2012-07-21 05:28 -0700
Last post2012-07-21 22:45 +0200
Articles 3 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Plotting datapoints of different blocks in one graph Georg <g.hasselberg@gmail.com> - 2012-07-21 05:28 -0700
    Re: Plotting datapoints of different blocks in one graph Georg <g.hasselberg@gmail.com> - 2012-07-21 06:02 -0700
    Re: Plotting datapoints of different blocks in one graph Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-07-21 22:45 +0200

#1288 — Plotting datapoints of different blocks in one graph

FromGeorg <g.hasselberg@gmail.com>
Date2012-07-21 05:28 -0700
SubjectPlotting datapoints of different blocks in one graph
Message-ID<086e9ced-697a-4c2b-9339-5405a3776eef@googlegroups.com>
Hi everybody,

I have a dataset, consitsting of multiple blocks. I used that to get different plots for each block. Now I need only the nth line of each block and I need gnuplot to plot this as one graph.

Illustration:
# Datablock 1
1  2.3
2  2.4   <-- 1st datapoint I need
3  2.5

# Datablock 2
1  3.3
2  3.4   <-- 2nd datapoint I need
3  3.5

#...
.
.       <-- ...
.


I can plot these points separately, making use of "every ::2::2" (and leaving out "index" at all), but gnuplot doesn't combine them to a dataset (for example: "with linespoints" gives me still single dots). That would be crucial, because I need a fit through these points.

Any ideas would be greatly appreciated!
Thanks,
Georg

[toc] | [next] | [standalone]


#1289

FromGeorg <g.hasselberg@gmail.com>
Date2012-07-21 06:02 -0700
Message-ID<9e962f24-25c6-495b-9e8d-efecc102e9ac@googlegroups.com>
In reply to#1288
On Saturday, July 21, 2012 2:28:40 PM UTC+2, Georg wrote:
> Hi everybody,
> 
> I have a dataset, consitsting of multiple blocks. I used that to get different plots for each block. Now I need only the nth line of each block and I need gnuplot to plot this as one graph.
> 
> Illustration:
> # Datablock 1
> 1  2.3
> 2  2.4   &lt;-- 1st datapoint I need
> 3  2.5
> 
> # Datablock 2
> 1  3.3
> 2  3.4   &lt;-- 2nd datapoint I need
> 3  3.5
> 
> #...
> .
> .       &lt;-- ...
> .
> 
> 
> I can plot these points separately, making use of &quot;every ::2::2&quot; (and leaving out &quot;index&quot; at all), but gnuplot doesn&#39;t combine them to a dataset (for example: &quot;with linespoints&quot; gives me still single dots). That would be crucial, because I need a fit through these points.
> 
> Any ideas would be greatly appreciated!
> Thanks,
> Georg

One workaround would be deleting the newlines between blocks. Although it makes plotting the data by blocks a little more inconvenient (via "every") it makes the above possible.

[toc] | [prev] | [next] | [standalone]


#1291

FromHans-Bernhard Bröker <HBBroeker@t-online.de>
Date2012-07-21 22:45 +0200
Message-ID<a70imfFokaU1@mid.dfncis.de>
In reply to#1288
On 21.07.2012 14:28, Georg wrote:

> I can plot these points separately, making use of "every ::2::2" (and
> leaving out "index" at all), but gnuplot doesn't combine them to a
> dataset (for example: "with linespoints" gives me still single dots).
> That would be crucial, because I need a fit through these points.

What makes you think 'fit' cares whether a lines-points plot would have 
connected those dots?

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web