From 2581aa31fbf6395d4b32abd3f11b6d781edc8ec0 Mon Sep 17 00:00:00 2001 From: Eero Tamminen Date: Wed, 2 Feb 2005 20:50:14 +0000 Subject: [PATCH] better colors for pies svn: r4018 --- gramps2/ChangeLog | 3 +++ gramps2/src/plugins/StatisticsChart.py | 30 +++++++++++++------------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index e4a0a59e8..6370db078 100644 --- a/gramps2/ChangeLog +++ b/gramps2/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/gramps2/src/plugins/StatisticsChart.py b/gramps2/src/plugins/StatisticsChart.py index 64583cbef..ce15bd901 100755 --- a/gramps2/src/plugins/StatisticsChart.py +++ b/gramps2/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)