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


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

Data file with blank spaces

Started byMichael <proximum@land.ru>
First post2013-12-13 22:30 +0700
Last post2013-12-15 04:58 +0700
Articles 4 — 3 participants

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


Contents

  Data file with blank spaces Michael <proximum@land.ru> - 2013-12-13 22:30 +0700
    Re: Data file with blank spaces Olaf Schultz <o.schultz@enhydralutris.de> - 2013-12-13 18:36 +0100
    Re: Data file with blank spaces Karl <mail.kfr@gmx.net> - 2013-12-14 18:43 +0100
      Re: Data file with blank spaces Michael <proximum@land.ru> - 2013-12-15 04:58 +0700

#2210 — Data file with blank spaces

FromMichael <proximum@land.ru>
Date2013-12-13 22:30 +0700
SubjectData file with blank spaces
Message-ID<l8f964$vqv$1@dont-email.me>
Hello,
I have a file like this:

#X      Y1      Y2      Y3
0       5
1       6
2       7       12
3       8       13      18
4       9       14      19
5       10      15      20
6       11      16      21
7       12      17      22
8       13      18
9               19
10              20


Is there the way to plot three curves using only one file, or I have to 
split it to three files?

Thanks,
Michael.

[toc] | [next] | [standalone]


#2211

FromOlaf Schultz <o.schultz@enhydralutris.de>
Date2013-12-13 18:36 +0100
Message-ID<bh0us7F6epU1@mid.individual.net>
In reply to#2210
Michael wrote:
> Hello,
> I have a file like this:
> 
> #X      Y1      Y2      Y3
> 0       5
> 1       6
> 2       7       12
> 3       8       13      18
> 4       9       14      19
> 5       10      15      20
> 6       11      16      21
> 7       12      17      22
> 8       13      18
> 9               19
> 10              20
> 
> 
> Is there the way to plot three curves using only one file, or I have to
> split it to three files?
Use - for an empty entry in these cases.

HTH, OIaf

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


#2212

FromKarl <mail.kfr@gmx.net>
Date2013-12-14 18:43 +0100
Message-ID<l8i5c1$9ai$1@news.rz.uni-karlsruhe.de>
In reply to#2210
Am 13.12.2013 16:30, schrieb Michael:
> Hello,
> I have a file like this:
> 
> #X      Y1      Y2      Y3
> 0       5
> 1       6
> 2       7       12
> 3       8       13      18
> 4       9       14      19
> 5       10      15      20
> 6       11      16      21
> 7       12      17      22
> 8       13      18
> 9               19
> 10              20
> 
> 
> Is there the way to plot three curves using only one file, or I have to
> split it to three files?
> 
> Thanks,
> Michael.

I guess you want to plot y1 vs. x, y2 vs. x, y3 vs. x?

gp> plot "filename" using 1:2, "" us 1:3, "" us 1:4

plot "" just uses the filename from the last plot.

  Karl

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


#2213

FromMichael <proximum@land.ru>
Date2013-12-15 04:58 +0700
Message-ID<l8ik9u$vj3$1@dont-email.me>
In reply to#2212
> I guess you want to plot y1 vs. x, y2 vs. x, y3 vs. x?
>
> gp> plot "filename" using 1:2, "" us 1:3, "" us 1:4
>
> plot "" just uses the filename from the last plot.
>
>    Karl
>

I asked about missing data points. I've found the solution, "set 
datafile missing <character>". Thanks.

[toc] | [prev] | [standalone]


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


csiph-web