How to embed multiple datasets in a gnuplot command script for a single plot command?

gnuplot

Solution

The following script works with Gnuplot 4.4 as expected. The output attached below

set terminal png
set output 'e.png'
splot "-" using 1:2:3, "" using 1:2:3
 1 0 1 4 4
 1 2 3 3 4
 0.5 3 1.5 2.5 -1
e
 1 4 4
 1 3 4
 0.5 2.5 -1
e
set output

splot "-" using 1:2:3, "" using 1:2:3

Problem

I found out that in gnuplot one can obtain multiple curves / datasets from a single file: ``` splot "file.dat" using 1:2:3, splot "file.dat" using 1:4:5 ``` Also one can embed data in a script like so: ``` splot "-" using 1:2:3 1 0 1 1 2 3 0.5 3 1.5 ``` However, the following seems not to work: ``` splot "-" using 1:2:3, "-" using 1:4:5 1 0 1 4 4 1 2 3 3 4 0.5 3 1.5 2.5 -1 ``` is this intentional, does a workaround exist or is it simply not possible?

Original source