From 50bf6bcdc397a0f6b8ad7326b1578d5418368628 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Tue, 23 Jan 2018 17:11:13 +0300 Subject: [PATCH] OK In progress... --- src/Axis.vala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Axis.vala b/src/Axis.vala index de2512a..73c647c 100644 --- a/src/Axis.vala +++ b/src/Axis.vala @@ -370,8 +370,8 @@ namespace CairoChart { title.show(); } - if (is_x) draw_recs (step, max_rec_height, min); - else draw_recs (step, max_rec_width, min); + if (is_x) draw_recs (min, step, max_rec_height); + else draw_recs (min, step, max_rec_width); chart.ctx.stroke (); @@ -495,9 +495,9 @@ namespace CairoChart { } } - protected virtual void draw_recs (Float128 step, double max_rec_size, Float128 min) { + protected virtual void draw_recs (Float128 min, Float128 step, double max_rec_size) { // 5. Draw records, update cur_{x,y}_{min,max}. - for (Float128 v = min, max = range.zmax; Math.point_belong (v, min, max); v += step) { + for (Float128 v = min; Math.point_belong (v, min, range.zmax); v += step) { if (is_x && chart.joint_x || !is_x && chart.joint_y) { chart.color = chart.joint_color; ser.grid.style.color = Color(0, 0, 0, 0.5);