Gnuplot
Help with plot
Posts  1 - 1  of  1
sakshiporwal
Hi,

I need help in plotting a graph with the following data.

##Size Time Server
100 1 1
120 2 1
80 3 1
100 4 1
160 5 1
120 1 2
0 2 2
18 3 2
60 4 2
180 5 2

There are two different servers 1 and 2. From 1 to 5 seconds they respond with a particular size.

I want to draw a graph with X and Y axis as time and size and curves for each server.

With the below mentioned code, I am able to draw the graph.

gnuplot> set xlabel "time"
gnuplot> set ylabel "size"
gnuplot> plot "C:\\gnuplot\\data.dat"

But is there a method that I can name the curve as Server 1 and Server 2 so it becomes easier to differentiate them from one another.

Sakshi
Save
Cancel
Reply
 
x
OK