Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2061 > unrolled thread
| Started by | Ingo Thies <ingo.thies@gmx.de> |
|---|---|
| First post | 2011-02-01 15:30 +0100 |
| Last post | 2011-02-01 07:17 -0800 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
Multiple plots with "-" data Ingo Thies <ingo.thies@gmx.de> - 2011-02-01 15:30 +0100
Re: Multiple plots with "-" data Ingo Thies <ingo.thies@gmx.de> - 2011-02-01 22:55 +0100
Re: Multiple plots with "-" data Péter Juhász <peter.juhasz83@gmail.com> - 2011-02-01 07:17 -0800
| From | Ingo Thies <ingo.thies@gmx.de> |
|---|---|
| Date | 2011-02-01 15:30 +0100 |
| Subject | Multiple plots with "-" data |
| Message-ID | <8qqjnoFjerU1@mid.individual.net> |
Dear all, is there a possibility to plot more than one sets of data with the "-" dummy file method? With real files file1, file2 you can do plot "file1" <modifiers>,"file2" <modifiers> but I cannot see how to do this with plot "-" <modifiers> <data> e The aim is to have a neat demo file for showing two plots without the need of external data files. Thanks a lot in advance! Ingo
[toc] | [next] | [standalone]
| From | Ingo Thies <ingo.thies@gmx.de> |
|---|---|
| Date | 2011-02-01 22:55 +0100 |
| Message-ID | <8qrdqgFct8U1@mid.individual.net> |
| In reply to | #2061 |
Am 2011-02-01 16:17, schrieb Péter Juhász:
> If you specify more than one '-'s in a plot command, gnuplot will ask
> you for data until it encounters enough "e"s.
Ah, thanks, these "e"'s were the problem; I thought one would do.
--
Gruß,
Ingo
[toc] | [prev] | [next] | [standalone]
| From | Péter Juhász <peter.juhasz83@gmail.com> |
|---|---|
| Date | 2011-02-01 07:17 -0800 |
| Message-ID | <66fd618c-5a4f-4f03-b841-64e654cd1ac6@y26g2000yqd.googlegroups.com> |
| In reply to | #2061 |
On Feb 1, 3:30 pm, Ingo Thies <ingo.th...@gmx.de> wrote:
> Dear all,
>
> is there a possibility to plot more than one sets of data with the "-"
> dummy file method?
>
> With real files file1, file2 you can do
>
> plot "file1" <modifiers>,"file2" <modifiers>
>
> but I cannot see how to do this with
>
> plot "-" <modifiers>
> <data>
> e
>
> The aim is to have a neat demo file for showing two plots without the
> need of external data files.
>
> Thanks a lot in advance!
>
> Ingo
If you specify more than one '-'s in a plot command, gnuplot will ask
you for data until it encounters enough "e"s.
gnuplot> plot '-' lt 2, '-' lt 4
input data ('e' ends) > 1
input data ('e' ends) > 2
input data ('e' ends) > 3
input data ('e' ends) > 4
input data ('e' ends) > 56
input data ('e' ends) > 7
input data ('e' ends) > e # this concludes the first set of data
input data ('e' ends) > 5
input data ('e' ends) > 6
input data ('e' ends) > 7
input data ('e' ends) > 8
input data ('e' ends) > 5
input data ('e' ends) > 4
input data ('e' ends) > 3
input data ('e' ends) > e # after this it finally plots
gnuplot>
Two '-'s were given in the spec, so it keeps asking until it gets two
'e's.
You can even mix normal files and pseudo-files in the plot
specification:
plot '-' lt 2, 'foo.txt' u lt 6, '-' lt 4
Péter Juhász
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web