def draw_bar_graph(self, graph):
    ' draw_bar_graph(self, graph) -> [element, element,...]\n\n            o graph     Graph object\n\n            Returns a list of drawable elements for a bar graph of the passed\n            Graph object\n        '
    bar_elements = []
    data_quartiles = graph.quartiles()
    (minval, maxval) = (data_quartiles[0], data_quartiles[4])
    (btm, ctr, top) = self.track_radii[self.current_track_level]
    trackheight = (0.5 * (top - btm))
    datarange = (maxval - minval)
    if (datarange == 0):
        datarange = trackheight
    data = graph[self.start:self.end]
    if (graph.center is None):
        midval = ((maxval + minval) / 2.0)
    else:
        midval = graph.center
    newdata = intermediate_points(self.start, self.end, graph[self.start:self.end])
    resolution = max((midval - minval), (maxval - midval))
    if (resolution == 0):
        resolution = trackheight
    for (pos0, pos1, val) in newdata:
        (pos0angle, pos0cos, pos0sin) = self.canvas_angle(pos0)
        (pos1angle, pos1cos, pos1sin) = self.canvas_angle(pos1)
        barval = ((trackheight * (val - midval)) / resolution)
        if (barval >= 0):
            barcolor = graph.poscolor
        else:
            barcolor = graph.negcolor
        bar_elements.append(self._draw_arc(ctr, (ctr + barval), pos0angle, pos1angle, barcolor))
    return bar_elements
draw_bar_graph(self, graph) -> [element, element,...]

o graph     Graph object

Returns a list of drawable elements for a bar graph of the passed
Graph object
def draw_bar_graph(self, graph):
    ' draw_bar_graph(self, graph) -> [element, element,...]\n\n            o graph     Graph object\n\n            Returns a list of drawable elements for a bar graph of the passed\n            Graph object\n        '
    bar_elements = []
    data_quartiles = graph.quartiles()
    (minval, maxval) = (data_quartiles[0], data_quartiles[4])
    (btm, ctr, top) = self.track_radii[self.current_track_level]
    trackheight = (0.5 * (top - btm))
    datarange = (maxval - minval)
    if (datarange == 0):
        datarange = trackheight
    data = graph[self.start:self.end]
    if (graph.center is None):
        midval = ((maxval + minval) / 2.0)
    else:
        midval = graph.center
    newdata = intermediate_points(self.start, self.end, graph[self.start:self.end])
    resolution = max((midval - minval), (maxval - midval))
    if (resolution == 0):
        resolution = trackheight
    for (pos0, pos1, val) in newdata:
        (pos0angle, pos0cos, pos0sin) = self.canvas_angle(pos0)
        (pos1angle, pos1cos, pos1sin) = self.canvas_angle(pos1)
        barval = ((trackheight * (val - midval)) / resolution)
        if (barval >= 0):
            barcolor = graph.poscolor
        else:
            barcolor = graph.negcolor
        bar_elements.append(self._draw_arc(ctr, (ctr + barval), pos0angle, pos1angle, barcolor))
    return bar_elements