aniplot/graph_window.py
def render(self):
        """ render everything. window edge, scrollbar, legend, and the graph itself. the graph object
         renders the grid, background, grid text and the graph line """
        draw.filled_rect(self.x, self.y, self.w, self.h, (0.0,0.0,0.0,1.))
        self._render_scrollbar(self.x, self.y + 1, self.w, 8)

        # render oscilloscope window edge
        gl.glPushMatrix()
        gl.glTranslatef(.5,.5,0.)
        gl.glLineWidth(1.)
        draw.rect(self.x, self.y, self.w, self.h, (0.6,0.6,0.6,1.))
        gl.glPopMatrix()

        gl.glPushMatrix()
        x, y, w, h = self._raw_graph_window_dim()
        xx, yy = self.parent.gl_coordinates(x, y)
        gl.glScissor(int(xx), int(yy - h), int(w), int(h))
        gl.glEnable(gl.GL_SCISSOR_TEST)
        #print "sy1 %.2f sy2 %.2f sy2 - sy1 %.2f" % (self.sy1, self.sy2, self.sy2 - self.sy1)
        self.graph_renderer.render(x, y, w, h, self.sx1, self.sy1, self.sx2 - self.sx1, self.sy2 - self.sy1)
        gl.glDisable(gl.GL_SCISSOR_TEST)
        gl.glPopMatrix()

        if self.render_legend:
            x, y = self.render_legend_pos
            self._render_legend(self.x + x, self.y + y)
 render everything. window edge, scrollbar, legend, and the graph itself. the graph object
         renders the grid, background, grid text and the graph line 
render everything. window edge, scrollbar, legend, and the graph itself. the graph object
renders the grid, background, grid text and the graph line
render everything . window edge scrollbar legend and the graph itself . the graph object renders the grid background grid text and the graph line
def render(self):
        draw.filled_rect(self.x, self.y, self.w, self.h, (0.0,0.0,0.0,1.))
        self._render_scrollbar(self.x, self.y + 1, self.w, 8)
        gl.glPushMatrix()
        gl.glTranslatef(.5,.5,0.)
        gl.glLineWidth(1.)
        draw.rect(self.x, self.y, self.w, self.h, (0.6,0.6,0.6,1.))
        gl.glPopMatrix()
        gl.glPushMatrix()
        x, y, w, h = self._raw_graph_window_dim()
        xx, yy = self.parent.gl_coordinates(x, y)
        gl.glScissor(int(xx), int(yy - h), int(w), int(h))
        gl.glEnable(gl.GL_SCISSOR_TEST)
        self.graph_renderer.render(x, y, w, h, self.sx1, self.sy1, self.sx2 - self.sx1, self.sy2 - self.sy1)
        gl.glDisable(gl.GL_SCISSOR_TEST)
        gl.glPopMatrix()
        if self.render_legend:
            x, y = self.render_legend_pos
            self._render_legend(self.x + x, self.y + y)
def render ( self ) : draw . filled_rect ( self . x , self . y , self . w , self . h , ( 0.0 , 0.0 , 0.0 , 1. ) ) self . _render_scrollbar ( self . x , self . y + 1 , self . w , 8 ) gl . glPushMatrix ( ) gl . glTranslatef ( .5 , .5 , 0. ) gl . glLineWidth ( 1. ) draw . rect ( self . x , self . y , self . w , self . h , ( 0.6 , 0.6 , 0.6 , 1. ) ) gl . glPopMatrix ( ) gl . glPushMatrix ( ) x , y , w , h = self . _raw_graph_window_dim ( ) xx , yy = self . parent . gl_coordinates ( x , y ) gl . glScissor ( int ( xx ) , int ( yy - h ) , int ( w ) , int ( h ) ) gl . glEnable ( gl . GL_SCISSOR_TEST ) self . graph_renderer . render ( x , y , w , h , self . sx1 , self . sy1 , self . sx2 - self . sx1 , self . sy2 - self . sy1 ) gl . glDisable ( gl . GL_SCISSOR_TEST ) gl . glPopMatrix ( ) if self . render_legend : x , y = self . render_legend_pos self . _render_legend ( self . x + x , self . y + y )
render everything.
render everything .
""" render everything. window edge, scrollbar, legend, and the graph itself. the graph object
         renders the grid, background, grid text and the graph line """ # render oscilloscope window edge #print "sy1 %.2f sy2 %.2f sy2 - sy1 %.2f" % (self.sy1, self.sy2, self.sy2 - self.sy1)
self