aniplot/graph_channel.py
def render(self, start_index, end_index, resolution):
        """ combined render of avg and minmax lines """
        # TODO: use ideas from these places:
        # http://jet.ro/2011/06/04/better-looking-anti-aliased-lines-with-simple-trick/
        # http://artgrammer.blogspot.com/2011/05/drawing-nearly-perfect-2d-line-segments.html
        # http://artgrammer.blogspot.com/2011/07/drawing-polylines-by-tessellation.html
        # http://homepage.mac.com/arekkusu/bugs/invariance/TexAA.html
        # http://people.csail.mit.edu/ericchan/articles/prefilter/
        if self.f_render_minmax:
            self.render_minmax(start_index, end_index, resolution)
        if self.f_render_avg:
            self.render_avg(start_index, end_index, resolution)
 combined render of avg and minmax lines 
combined render of avg and minmax lines
combined render of avg and minmax lines
def render(self, start_index, end_index, resolution):
        if self.f_render_minmax:
            self.render_minmax(start_index, end_index, resolution)
        if self.f_render_avg:
            self.render_avg(start_index, end_index, resolution)
def render ( self , start_index , end_index , resolution ) : if self . f_render_minmax : self . render_minmax ( start_index , end_index , resolution ) if self . f_render_avg : self . render_avg ( start_index , end_index , resolution )
combined render of avg and minmax lines
combined render of avg and minmax lines
""" combined render of avg and minmax lines """ # TODO: use ideas from these places: # http://jet.ro/2011/06/04/better-looking-anti-aliased-lines-with-simple-trick/ # http://artgrammer.blogspot.com/2011/05/drawing-nearly-perfect-2d-line-segments.html # http://artgrammer.blogspot.com/2011/07/drawing-polylines-by-tessellation.html # http://homepage.mac.com/arekkusu/bugs/invariance/TexAA.html # http://people.csail.mit.edu/ericchan/articles/prefilter/
self
start_index
end_index
resolution