Plotting Multiple Graphs w Different #'s of datapoints

Plotting Multiple Graphs w Different #'s of datapoints

Post by A S » Tue, 07 Nov 2000 04:00:00



Hi,
Need to plot several sets of data on the same axes. The catch is for any
given value of X, the data sets may or may not have Y values.If i just
plot one column against another, gnuplot seems to require data for all Y
columns to be there for each value of X. However, my data is such that
one value of X has all values of Y and sometimes none and sometimes
some...

That is the data looks something like:

X    Y1    Y2
--    --    ---
1    2
2    3
3    2        4
4    3        5
5    1        2
6              3
7              4

I appreciate your assistance.

A

 
 
 

Plotting Multiple Graphs w Different #'s of datapoints

Post by Hans-Bernhard Broeke » Wed, 08 Nov 2000 04:00:00



> Hi,
> Need to plot several sets of data on the same axes. The catch is for any
> given value of X, the data sets may or may not have Y values.If i just
> plot one column against another, gnuplot seems to require data for all Y
> columns to be there for each value of X. However, my data is such that
> one value of X has all values of Y and sometimes none and sometimes
> some...

As is, gnuplot can't use your datafile. You cannot use whitespace to
represent missing values in the file. But you can use something else,
provided you 'set missing' to the same string. A good choice is '?', i.e.
you would

        set missing '?'

and edit your datafile to look like this:

1    2        ?
2    3        ?
3    2        4
4    3        5
5    1        2
6    ?        3
7    ?        4

--

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

 
 
 

1. plotting different graphs with different linestyles

hello,

I have to plot different graphs into the same plot, so the graphs
must be made with different line styles to distinguish them.
The graphs are plotted with commands like ?plot "plot.grd" smooth
csplines? (making smooth lines from xy-data files).

The output (terminal) must be postscript, black and white, so
there is no possibility to give the lines just different colors.
Maybe the best is to choose linestyles like "dashed", "dotted",
"dot-dash", and so on.
But how do I tell this to gnuplot? With "help set linestyle" I
found nothing appropriate.

regards,

N.
--
Dies ist die Signatur eines arbeitssuchenden Physikers

http://home.pages.de/~beethoven/

2. Req: 3D Studio MAX 2.5

3. Having multiple plots in one datafile different color

4. Graphics ftp site?

5. Having multiple plots in one datafile different colors

6. Dynamic LOD

7. Plotting multiple elements on one graph?

8. CorelDraw 9.0 versus PSP 7

9. Plotting a Graph With Multiple Columns

10. Multiple Graphs on Same Plot ?

11. Multiple plots on same graph

12. Plotting Multiple data sets on the same graph

13. Plotting multiple lines in a single graph