From 593ef557768a0620217593c731917e24be59bc9d Mon Sep 17 00:00:00 2001 From: Armin Luntzer <armin.luntzer@univie.ac.at> Date: Thu, 13 Jun 2019 10:14:01 +0200 Subject: [PATCH] XYPlot: improve y-label placement --- src/client/widgets/xyplot/xyplot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/widgets/xyplot/xyplot.c b/src/client/widgets/xyplot/xyplot.c index 61a627f..0a2b9ed 100644 --- a/src/client/widgets/xyplot/xyplot.c +++ b/src/client/widgets/xyplot/xyplot.c @@ -1568,7 +1568,7 @@ static void xyplot_draw_plot_frame(XYPlot *p, cairo_t *cr, if (p->ylabel) xyplot_write_text_centered(cr, te_y.height, - x + 0.5 * h - 0.25 * te_y.width, + x + 0.5 * h - 0.125 * te_y.width, p->ylabel, -90.0 * M_PI / 180.0); @@ -1584,7 +1584,7 @@ static void xyplot_draw_plot_frame(XYPlot *p, cairo_t *cr, if (p->y2label) xyplot_write_text_centered(cr, width - 2.0 * te_y2.height, - x + 0.5 * h - 0.25 * te_y2.width, + x + 0.5 * h - 0.125 * te_y2.width, p->y2label, 90.0 * M_PI / 180.0); -- GitLab