|
From: Martin P. <mb...@ps...> - 2004-02-17 15:06:54
|
Hi,
I am trying to label my plots automatically through scripts -- ( very
large data-sets, Ex**l doesn't like it)
y= []
steps = range(len(y))
d = Gnuplot.Data(steps,y)
g = Gnuplot.Gnuplot()
g.title("Title")
g.xlabel("X-label")
g.ylabel("Y-label")
g.label(("test label") at 5,5) <---- How do you automate this
line?
g('set data style linespoints')
g.plot(d)
g.hardcopy('output.ps', enhanced=1, color=1)
DATA:
| x | y | code |
|--------------|--------|
| 1 | 0.50 | A12 |
| 2 | 0.75 | ZXC |
| 3 | 0.45 | GFS |
| 4 | 0.23 | AER |
| 5 | 0.12 | ASD |
| 6 | 0.90 | IOP |
|-----------------------|
How do you make a graph, and label each of the 6 points with the, x and
y value, or by its code?
your help is much appreciated,
cheers,
Martin.
|