def analysis.general_optics_example.draw_layout (   graph,
  optics 
)

Definition at line 43 of file general_optics_example.py.

00043                               :
00044     if optics is None:
00045         return
00046     
00047     colorline = graphite.PointPlot()
00048     colorline.lineStyle = graphite.LineStyle(width=1, color=graphite.orange, kind=graphite.SOLID)
00049     colorline.symbol = None
00050     for i in optics.keys():
00051         olist=optics[i].polygon_list()
00052         for o in olist:
00053             if o is not None:
00054                 d=graphite.Dataset()
00055                 d.x=o[:,2]
00056                 d.y=o[:,0]
00057                 d.z=o[:,1]
00058                 #set coordinates to z=+right, x=+up, y=+out of paper
00059                 graph.datasets.append(d)
00060                 graph.formats.append(colorline)
00061 
def draw_trace(graph, optics_trace):


Generated on Wed Nov 21 10:18:32 2007 for analysis by  doxygen 1.5.4