Multiple series from stdin data set

Multiple series from stdin data set

Post by Jay Lubomirsk » Sat, 20 Jan 2001 13:17:00



Hi,

I'm trying to plot multiple series from a data set I'm sending in from
standard input:

The current setup:
set xlabel "Date"
set xdata time
set timefmt "%Y-%m-%d %H:%M:%S"
set format x "%m/%d/%Y\n%H:%M"
set nokey
set ylabel 'Outside Temperature'
plot '-' using 1:3 with lines
2001-01-01 23:35:00 18.40
2001-01-01 23:37:00 18.40
2001-01-01 23:45:00 18.20
2001-01-01 23:55:00 18.10
2001-01-02 00:05:00 18.00
2001-01-02 00:15:00 17.70
e

But I'd like to add another column to it for another series.. From what the
manual seems to say I need to send another stream of data with the new
series.

Anyone know a better way?

Thanks,

Jay

 
 
 

Multiple series from stdin data set

Post by Hans-Bernhard Broeke » Sun, 21 Jan 2001 00:30:21



> I'm trying to plot multiple series from a data set I'm sending in from
> standard input:
[...]
> plot '-' using 1:3 with lines
> 2001-01-01 23:35:00 18.40

[...]

Quote:> But I'd like to add another column to it for another series.. From
> what the manual seems to say I need to send another stream of data
> with the new series.

Yes. Either send multiple datasets individually, via stdin (separated
with 'e' lines), or use a separate datafile instead of stdin.

Which of those is better depends on the particular application.

--

Even if all the snow were burnt, ashes would remain.

 
 
 

1. plotting multiple graph from nultiple data set within one data file

Dear Gnuplot users

Hi, I am new to Gnuplot. Sorry, if this question is very basic. I have multiple data set as shown below;

Crossection # 1 at Chainage 200
x= 0.000000  y=29.889000 x= 0.000000  y=29.889000
xl= -4.415000 yl= 32.048000 xr=4.435000 yr=32.223000
xl= -7.742000 yl= 34.627998 xr=7.462000 yr=34.772999
xl= -13.294000 yl= 37.702999 xr=12.367000 yr=37.522999
xl= -14.055000 yl= 37.608002 xr=13.885000 yr=37.563000

Crossection # 2 at Chainage 400
x= 0.000000  y=29.889000 x= 0.000000  y=29.889000
xl= -2.599000 yl= 30.469999 xr=2.150000 yr=29.982000
xl= -5.717000 yl= 31.392000 xr=6.683000 yr=30.402000
xl= -10.227000 yl= 34.152000 xr=8.963000 yr=33.062000
xl= -10.227000 yl= 34.152000 xr=9.021000 yr=33.266998
xl= -10.227000 yl= 34.152000 xr=9.655000 yr=33.722000

I would like to write a script that would take the first line as the title of the graph and the following data as points on a graph. The second data set is seperated by the null lines. How can I view the plotted graph each at a time. The script I wrote will put both data sets on one graph. I tried to use pause -1 but it didn't work. Can anyone help me solve these problems
1) to automatically read charaters from my data file and set it as title, and
2) to plot seperate graphs from seperate data sets, and to view the graphs one at each time.

Thanks in advance for your help.
Cheers,
Kamarul

2. getting a StdPicture (BMP) for a HICON (Icon Handle)

3. MEGA multiple series in BIG column of data

4. Sphere represented by polygons

5. Multiple data series + rescaling

6. Web 3D animation

7. Newbie question: Multiple data series

8. How can I separate stitched surfaces?

9. Area chart for multiple data set values

10. Fitting to multiple data sets

11. Multiple bezier curves for one data set?

12. Plotting Multiple data sets on the same graph

13. plot multiple set of data