charts: Use numeric colors instead of color names.
[pspp-builds.git] / src / output / chart.c
index 2a2bc12451d8c5fc5187c4d13415c09b47f88933..8d99f41fd0194b04a25949f8b52099a9588040d0 100644 (file)
@@ -58,7 +58,7 @@ chart_geometry_init (plPlotter *lp, struct chart_geometry *geom)
 
   /* Set line thickness. */
   pl_flinewidth_r (lp, 0.25);
-  pl_pencolorname_r (lp, "black");
+  pl_pencolor_r (lp, 0, 0, 0);
 
   /* Erase graphics display. */
   pl_erase_r (lp);
@@ -77,7 +77,10 @@ chart_geometry_init (plPlotter *lp, struct chart_geometry *geom)
   geom->legend_left = 810;
   geom->legend_right = 1000;
   geom->font_size = 0;
-  strcpy (geom->fill_colour, "red");
+
+  geom->fill_colour.red = 255;
+  geom->fill_colour.green = 0;
+  geom->fill_colour.blue = 0;
 
   /* Get default font size */
   if (!geom->font_size)