Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1288 > unrolled thread
| Started by | Georg <g.hasselberg@gmail.com> |
|---|---|
| First post | 2012-07-21 05:28 -0700 |
| Last post | 2012-07-21 22:45 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
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
| From | Georg <g.hasselberg@gmail.com> |
|---|---|
| Date | 2012-07-21 05:28 -0700 |
| Subject | Plotting 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]
| From | Georg <g.hasselberg@gmail.com> |
|---|---|
| Date | 2012-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 <-- 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 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]
| From | Hans-Bernhard Bröker <HBBroeker@t-online.de> |
|---|---|
| Date | 2012-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