box_whisker_whiskers (bw, whisker);
box_whisker_hinges (bw, hinge);
box_whisker_whiskers (bw, whisker);
box_whisker_hinges (bw, hinge);
bottom_whisker = geom->axis[SCALE_ORDINATE].data_min + (whisker[0] - geom->axis[SCALE_ORDINATE].min) *
geom->axis[SCALE_ORDINATE].scale;
bottom_whisker = geom->axis[SCALE_ORDINATE].data_min + (whisker[0] - geom->axis[SCALE_ORDINATE].min) *
geom->axis[SCALE_ORDINATE].scale;
{
cairo_move_to (cr, box_left, top_whisker);
cairo_line_to (cr, box_right, top_whisker);
{
cairo_move_to (cr, box_left, top_whisker);
cairo_line_to (cr, box_right, top_whisker);
- xrchart_write_yscale (cr, geom, boxplot->y_min, boxplot->y_max);
+ if (! xrchart_write_yscale (cr, geom, boxplot->y_min, boxplot->y_max))
+ return;
+
xrchart_write_title (cr, geom, "%s", chart_item->title);
box_width = (geom->axis[SCALE_ABSCISSA].data_max - geom->axis[SCALE_ABSCISSA].data_min) / boxplot->n_boxes / 2.0;
xrchart_write_title (cr, geom, "%s", chart_item->title);
box_width = (geom->axis[SCALE_ABSCISSA].data_max - geom->axis[SCALE_ABSCISSA].data_min) / boxplot->n_boxes / 2.0;