def analysis.general_optics_example.draw_trace (   graph,
  optics_trace 
)

Definition at line 62 of file general_optics_example.py.

00062                                    :
00063     if optics_trace is None:
00064         return
00065         
00066     colorline = graphite.PointPlot()
00067     if optics_trace.color is None:
00068         color=graphite.black
00069     else:
00070         color=optics_trace.color
00071     
00072     colorline.lineStyle = graphite.LineStyle(width=1, color=color, kind=graphite.SOLID)
00073     colorline.symbol = None
00074 
00075     count=len(optics_trace)
00076     coords=Numeric.zeros((count,3), Numeric.Float)
00077     for i in range(count):
00078         xy=optics_trace[i].x0
00079         coords[i]=(xy[2],xy[0], xy[1]) #z is horizontal, x is vertical!
00080     
00081     graph.datasets.append(graphite.Dataset(coords))
00082     graph.formats.append(colorline)
00083 
def draw_everything(optics, trace, xrange, yrange, three_d=None):


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