#define ACRE_PAD (ACRE_FONT_SIZE)
#define ACRE_TICK_MAJOR_SIZE 6
#define ACRE_TICK_MINOR_SIZE 3
+#define ACRE_TICK_MINOR_DIVISIONS 5
#define ACRE_X_TICK_VALUE_PAD 2
#define ACRE_Y_TICK_VALUE_PAD 4
range = *axis_max - *axis_min;
step = _step_for_range (range);
- pixel_step = step * pixel_size / range;
+ pixel_step = step * pixel_size / range / ACRE_TICK_MINOR_DIVISIONS;
/* We expand the range by the ratio of the pixel step to the floor
* of the pixel_step.
{
cairo_t *cr = acre->cr;
double t, step, sub_step;
- int minor_divisions = 5;
cairo_save (cr);
_set_transform_to_data_space (acre);
step = _step_for_range (axis_max - axis_min);
- sub_step = step / minor_divisions;
+ sub_step = step / ACRE_TICK_MINOR_DIVISIONS;
for (t = (floor (axis_min / sub_step) + 1) * sub_step;
t <= axis_max;