better colors for pies
svn: r4018
This commit is contained in:
parent
e315d52b52
commit
2581aa31fb
@ -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>
|
||||
* src/Makefile.am: Ship ReadGrdb.py and WriteGrdb.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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user