Plotting Multiple data sets on the same graph

Plotting Multiple data sets on the same graph

Post by Steve Kel » Wed, 01 Jul 1998 04:00:00



I'm running Gnuplot 3.5 with the multiplot and GIF extensions on Solaris
2.5.1 and displaying with the x11 driver.

How can I plot multiple data sets on the same graph?

I'd like to do:
plot "ds1" title 'Data set 1',
     "ds2" title 'Data set 2',
     ...

Apparently, you can plot multiple functions, but not multiple
data sets.

Combining the data sets into a single file, separated by
blank lines doesn't give the separate plot colors or entries
in the legend.

I tried the "multiplot" option.  It's close, in that the
different data sets get plotted, but everything's in the
same color and the legend entries end up on top of each other.

Help!!!


\\ `   Xilinx                                   FAX: (408)377-3259
//     2100 Logic Drive
\\/.\  San Jose, California 95124

 
 
 

Plotting Multiple data sets on the same graph

Post by crawford richa » Wed, 01 Jul 1998 04:00:00




> I'm running Gnuplot 3.5 with the multiplot and GIF extensions on Solaris
> 2.5.1 and displaying with the x11 driver.

> How can I plot multiple data sets on the same graph?

> I'd like to do:
> plot "ds1" title 'Data set 1',
>      "ds2" title 'Data set 2',
>      ...

> Apparently, you can plot multiple functions, but not multiple
> data sets.

Sure you can, and your syntax is almost correct.

Either
      plot "ds1" title 'Data set 1', "ds2" title 'Data set 2'
or
      plot "ds1" title 'Data set 1',\
           "ds2" title 'Data set 2'
will work.

If not, please let me know!!



 
 
 

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. pictures

3. plot multiple inline data sets on same graph ?

4. What kind of 3D-Format to parse...

5. plot multiple set of data

6. 3dsmax 2.5 lockups

7. How to plot multiple data sets?

8. Antialias algorithm

9. Plotting multiple elements on one graph?

10. Plotting a Graph With Multiple Columns

11. Plotting Multiple Graphs w Different #'s of datapoints

12. Multiple Graphs on Same Plot ?

13. Multiple plots on same graph