Skip to content
Snippets Groups Projects
Commit 593ef557 authored by Armin Luntzer's avatar Armin Luntzer
Browse files

XYPlot: improve y-label placement

parent c708ec1f
Branches
No related tags found
No related merge requests found
...@@ -1568,7 +1568,7 @@ static void xyplot_draw_plot_frame(XYPlot *p, cairo_t *cr, ...@@ -1568,7 +1568,7 @@ static void xyplot_draw_plot_frame(XYPlot *p, cairo_t *cr,
if (p->ylabel) if (p->ylabel)
xyplot_write_text_centered(cr, xyplot_write_text_centered(cr,
te_y.height, te_y.height,
x + 0.5 * h - 0.25 * te_y.width, x + 0.5 * h - 0.125 * te_y.width,
p->ylabel, p->ylabel,
-90.0 * M_PI / 180.0); -90.0 * M_PI / 180.0);
...@@ -1584,7 +1584,7 @@ static void xyplot_draw_plot_frame(XYPlot *p, cairo_t *cr, ...@@ -1584,7 +1584,7 @@ static void xyplot_draw_plot_frame(XYPlot *p, cairo_t *cr,
if (p->y2label) if (p->y2label)
xyplot_write_text_centered(cr, xyplot_write_text_centered(cr,
width - 2.0 * te_y2.height, 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, p->y2label,
90.0 * M_PI / 180.0); 90.0 * M_PI / 180.0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment