src/output/cairo.c (xr_chart_renderer): Set the chart size to 0.8 of the smallest...
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 9 Sep 2017 18:44:44 +0000 (20:44 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 10 Sep 2017 17:51:07 +0000 (19:51 +0200)
src/output/cairo.c

index 8cb504d2dd0e877309fb916a241e69439de031bc..ef0b593233e67f7e03867926d35753536314166f 100644 (file)
@@ -1542,7 +1542,7 @@ xr_chart_render (struct xr_render_fsm *fsm, struct xr_driver *xr)
 {
   struct xr_chart_state *cs = UP_CAST (fsm, struct xr_chart_state, fsm);
 
-  const int chart_height = xr->length;
+  const int chart_height = 0.8 * (xr->length < xr->width ? xr->length : xr->width);
 
   if (xr->y > xr->length - chart_height)
     return true;