aniplot/graph_renderer.py
def _render_grid_lines(self, w, h, x2, y2, w2, h2):
        """ render grid in screenspace. render gridlines and grid legend """
        # 1. find sample value of top/bottom pixel coordinate
        # 2. calc sample values that need a line and draw them using pixel-coordinates
        # 3. find time values of left/right pixel coordinate
        # 2. calc time values that need a line and draw them using pixel-coordinates
        gl.glLineWidth(1.)
        gl.glColor4f(0.15, 0.15, 0.15, 1.)

        self._render_grid_horlines(w, h, x2, y2, w2, h2)
        self._render_grid_verlines(w, h, x2, y2, w2, h2)
 render grid in screenspace. render gridlines and grid legend 
render grid in screenspace. render gridlines and grid legend
render grid in screenspace . render gridlines and grid legend
def _render_grid_lines(self, w, h, x2, y2, w2, h2):
        gl.glLineWidth(1.)
        gl.glColor4f(0.15, 0.15, 0.15, 1.)
        self._render_grid_horlines(w, h, x2, y2, w2, h2)
        self._render_grid_verlines(w, h, x2, y2, w2, h2)
def _render_grid_lines ( self , w , h , x2 , y2 , w2 , h2 ) : gl . glLineWidth ( 1. ) gl . glColor4f ( 0.15 , 0.15 , 0.15 , 1. ) self . _render_grid_horlines ( w , h , x2 , y2 , w2 , h2 ) self . _render_grid_verlines ( w , h , x2 , y2 , w2 , h2 )
render grid in screenspace.
render grid in screenspace .
""" render grid in screenspace. render gridlines and grid legend """ # 1. find sample value of top/bottom pixel coordinate # 2. calc sample values that need a line and draw them using pixel-coordinates # 3. find time values of left/right pixel coordinate # 2. calc time values that need a line and draw them using pixel-coordinates
self
w
h
x2
y2
w2
h2