New module to perform decimal floating point arithmetic for charts.
[pspp] / src / output / charts / scree-cairo.c
index f9765c69f242d70f336628db354f19c406333393..db0ce1370fccb36ede5b65c04931d2267bcc2ffa 100644 (file)
@@ -44,8 +44,8 @@ xrchart_draw_scree (const struct chart_item *chart_item, cairo_t *cr,
   else
     max = fabs (min);
 
-  xrchart_write_yscale (cr, geom, 0, max, max);
-  xrchart_write_xscale (cr, geom, 0, rc->eval->size + 1, rc->eval->size + 1);
+  xrchart_write_yscale (cr, geom, 0, max);
+  xrchart_write_xscale (cr, geom, 0, rc->eval->size + 1);
 
   xrchart_vector_start (cr, geom, "");
   for (i = 0 ; i < rc->eval->size; ++i)