diff --git a/ChangeLog b/ChangeLog index e4a0a59e8..6370db078 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2005-02-02 Eero Tamminen + * src/plugins/StatisticsChart.py: Better colors for pies + 2005-02-02 Alex Roitman * src/Makefile.am: Ship ReadGrdb.py and WriteGrdb.py. diff --git a/src/plugins/StatisticsChart.py b/src/plugins/StatisticsChart.py index 64583cbef..ce15bd901 100755 --- a/src/plugins/StatisticsChart.py +++ b/src/plugins/StatisticsChart.py @@ -550,46 +550,46 @@ class StatisticsChart(Report.Report): g.set_fill_color((255,0,0)) g.set_line_width(width) 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 g = BaseDoc.GraphicsStyle() g.set_paragraph_style('SC-Text') 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) - self.doc.add_draw_style("SC-color-1",g) - # blue + self.doc.add_draw_style("SC-color-2",g) + # violet g = BaseDoc.GraphicsStyle() g.set_paragraph_style('SC-Text') 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) - self.doc.add_draw_style("SC-color-2",g) + self.doc.add_draw_style("SC-color-3",g) # yellow g = BaseDoc.GraphicsStyle() g.set_paragraph_style('SC-Text') g.set_color((0,0,0)) g.set_fill_color((255,255,0)) 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) - # cyan + # blue g = BaseDoc.GraphicsStyle() g.set_paragraph_style('SC-Text') 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) self.doc.add_draw_style("SC-color-5",g) # gray g = BaseDoc.GraphicsStyle() g.set_paragraph_style('SC-Text') 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) self.doc.add_draw_style("SC-color-6",g)