Turn off three dimension graphs

This commit is contained in:
R. Tyler Ballance 2009-01-02 01:41:36 -08:00
parent a6b439e360
commit 02dc1fbf47
2 changed files with 4 additions and 3 deletions

View File

@ -32,6 +32,7 @@ import random
HORZ = 0
VERT = 1
FONT_SIZE = 11
def other_direction(direction):
"explicit is better than implicit"
@ -61,7 +62,7 @@ class Plot(object):
self.labels[HORZ] = h_labels
self.labels[VERT] = v_labels
self.font_size = 10
self.font_size = FONT_SIZE
self.set_background (background)
self.border = border

View File

@ -91,7 +91,7 @@ class GitLog(object):
data = [c[1] for c in t]
labels = [c[0] for c in t]
vlabels = ['0', str(data[0])]
CairoPlot.bar_plot(filename, data, width, height, border=10, grid=True, three_dimension=True, h_labels=labels, v_labels=vlabels)
CairoPlot.bar_plot(filename, data, width, height, border=10, grid=True, h_labels=labels, v_labels=vlabels)
def _gen_Donut(t):
data = dict([(t[i][0], t[i][1]) for i in xrange(len(t))])
CairoPlot.donut_plot(filename, data, width, height, gradient=True, shadow=True)
@ -130,7 +130,7 @@ class GitLog(object):
bars.append(v)
labels.append(k)
vlabels = ['0', str(upper)]
CairoPlot.bar_plot(filename, bars, width, height, border=10, grid=True, three_dimension=True, h_labels=labels, v_labels=vlabels)
CairoPlot.bar_plot(filename, bars, width, height, border=10, grid=True, h_labels=labels, v_labels=vlabels)
try:
return locals()['_gen_%s' % chart](results)