better colors for pies

svn: r4018
This commit is contained in:
Eero Tamminen 2005-02-02 20:50:14 +00:00
parent 61530228c9
commit 670b90d3ab
2 changed files with 18 additions and 15 deletions

View File

@ -1,3 +1,6 @@
2005-02-02 Eero Tamminen <eerot@sf>
* src/plugins/StatisticsChart.py: Better colors for pies
2005-02-02 Alex Roitman <shura@alex.neuro.umn.edu> 2005-02-02 Alex Roitman <shura@alex.neuro.umn.edu>
* src/Makefile.am: Ship ReadGrdb.py and WriteGrdb.py. * src/Makefile.am: Ship ReadGrdb.py and WriteGrdb.py.

View File

@ -550,46 +550,46 @@ class StatisticsChart(Report.Report):
g.set_fill_color((255,0,0)) g.set_fill_color((255,0,0))
g.set_line_width(width) g.set_line_width(width)
self.doc.add_draw_style("SC-color-0",g) self.doc.add_draw_style("SC-color-0",g)
# orange
g = BaseDoc.GraphicsStyle()
g.set_paragraph_style('SC-Text')
g.set_color((0,0,0))
g.set_fill_color((255,158,33))
g.set_line_width(width)
self.doc.add_draw_style("SC-color-1",g)
# green # green
g = BaseDoc.GraphicsStyle() g = BaseDoc.GraphicsStyle()
g.set_paragraph_style('SC-Text') g.set_paragraph_style('SC-Text')
g.set_color((0,0,0)) g.set_color((0,0,0))
g.set_fill_color((0,255,0)) g.set_fill_color((0,178,0))
g.set_line_width(width) g.set_line_width(width)
self.doc.add_draw_style("SC-color-1",g) self.doc.add_draw_style("SC-color-2",g)
# blue # violet
g = BaseDoc.GraphicsStyle() g = BaseDoc.GraphicsStyle()
g.set_paragraph_style('SC-Text') g.set_paragraph_style('SC-Text')
g.set_color((0,0,0)) g.set_color((0,0,0))
g.set_fill_color((0,0,255)) g.set_fill_color((123,0,123))
g.set_line_width(width) g.set_line_width(width)
self.doc.add_draw_style("SC-color-2",g) self.doc.add_draw_style("SC-color-3",g)
# yellow # yellow
g = BaseDoc.GraphicsStyle() g = BaseDoc.GraphicsStyle()
g.set_paragraph_style('SC-Text') g.set_paragraph_style('SC-Text')
g.set_color((0,0,0)) g.set_color((0,0,0))
g.set_fill_color((255,255,0)) g.set_fill_color((255,255,0))
g.set_line_width(width) g.set_line_width(width)
self.doc.add_draw_style("SC-color-3",g)
# purple
g = BaseDoc.GraphicsStyle()
g.set_paragraph_style('SC-Text')
g.set_color((0,0,0))
g.set_fill_color((255,0,255))
g.set_line_width(width)
self.doc.add_draw_style("SC-color-4",g) self.doc.add_draw_style("SC-color-4",g)
# cyan # blue
g = BaseDoc.GraphicsStyle() g = BaseDoc.GraphicsStyle()
g.set_paragraph_style('SC-Text') g.set_paragraph_style('SC-Text')
g.set_color((0,0,0)) g.set_color((0,0,0))
g.set_fill_color((0,255,255)) g.set_fill_color((0,105,214))
g.set_line_width(width) g.set_line_width(width)
self.doc.add_draw_style("SC-color-5",g) self.doc.add_draw_style("SC-color-5",g)
# gray # gray
g = BaseDoc.GraphicsStyle() g = BaseDoc.GraphicsStyle()
g.set_paragraph_style('SC-Text') g.set_paragraph_style('SC-Text')
g.set_color((0,0,0)) g.set_color((0,0,0))
g.set_fill_color((200,200,200)) g.set_fill_color((210,204,210))
g.set_line_width(width) g.set_line_width(width)
self.doc.add_draw_style("SC-color-6",g) self.doc.add_draw_style("SC-color-6",g)