projects
/
scdataviz
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Seems to be coming along. Not convinced that the bowing conversions are right.
[scdataviz]
/
graphwidget.c
diff --git
a/graphwidget.c
b/graphwidget.c
index
7f2d944
..
95b9722
100644
(file)
--- a/
graphwidget.c
+++ b/
graphwidget.c
@@
-113,15
+113,16
@@
static void draw(GtkWidget *graph, cairo_t *cr) {
cairo_select_font_face (cr, "Georgia",
CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, 0.05);
cairo_select_font_face (cr, "Georgia",
CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, 0.05);
- cairo_set_source_rgb(cr, 1, 1, 1);
- cairo_fill_preserve(cr);
- cairo_set_source_rgb(cr, 0, 0, 0);
- cairo_stroke(cr);
- g_ptr_array_foreach(gw->graph->points, &draw_point, (gpointer)&cxt);
if(gw->graph->lines != NULL) {
if(gw->graph->lines != NULL) {
+ cairo_set_source_rgba(cr, 0, 0, 0, 0.25);
g_ptr_array_foreach(gw->graph->lines, &draw_lines, (gpointer)&cxt);
cairo_stroke(cr);
}
g_ptr_array_foreach(gw->graph->lines, &draw_lines, (gpointer)&cxt);
cairo_stroke(cr);
}
+ cairo_set_source_rgb(cr, 1, 1, 1);
+ cairo_fill_preserve(cr);
+ cairo_set_source_rgb(cr, 0, 0, 0);
+ g_ptr_array_foreach(gw->graph->points, &draw_point, (gpointer)&cxt);
+ cairo_stroke(cr);
cairo_restore(cr);
}
cairo_restore(cr);
}