~comnets/openwns-systemtest-wimac/systemtest-wimac--main--1.0

« back to all changes in this revision

Viewing changes to configBase/plotStations.py

  • Committer: Daniel Bültmann
  • Date: 2008-01-18 16:51:04 UTC
  • Revision ID: dbn@comnets.rwth-aachen.de-20080118165104-kcvus2lhi1trbzsl
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
import os
 
3
from pyx import *
 
4
 
 
5
def plot():
 
6
    g = graph.graphxy(width=12,height=12,
 
7
                      x=graph.axis.axis.linear(title="x [m]", min=0, max=11000),
 
8
                      y=graph.axis.axis.linear(title="y [m]", min=0, max=11000))
 
9
 
 
10
    g.plot(graph.data.file("posBS.junk", x=2, y=3),
 
11
           [graph.style.symbol(graph.style.symbol.circle, size=0.1,
 
12
                               symbolattrs=[deco.filled([color.rgb.green]),
 
13
                                            deco.stroked([color.rgb.red])])])
 
14
    g.plot(graph.data.file("posSS.junk", x=2, y=3),
 
15
           [graph.style.symbol(graph.style.symbol.cross,
 
16
                               symbolattrs=[deco.stroked([color.rgb.blue])])])
 
17
 
 
18
    if os.path.exists('./posRS.junk'):
 
19
        g.plot(graph.data.file("posRS.junk", x=2, y=3),
 
20
               [graph.style.symbol(graph.style.symbol.circle, size=0.05,
 
21
                                   symbolattrs=[deco.filled([color.rgb.blue]),
 
22
                                                deco.stroked([color.rgb.blue])])])
 
23
 
 
24
        if os.path.exists('./posRMS.junk'):
 
25
            g.plot(graph.data.file("posRMS.junk", x=2, y=3),
 
26
                   [graph.style.symbol(graph.style.symbol.cross)])
 
27
    
 
28
        
 
29
    g.writePDFfile("scenario")
 
30
 
 
31
if __name__ == "__main__" :
 
32
    plot()