}
}
- /* Next, we want to ensure that the data never collides with the
- * ticks. So we expand each axis on its minimum side as needed. */
- cairo_save (cr);
- {
- double x, y;
-
- _set_transform_to_data_space (acre);
-
- x = ACRE_TICK_MAJOR_SIZE + 2.0;
- y = ACRE_TICK_MAJOR_SIZE + 2.0;
- cairo_device_to_user_distance (cr, &x, &y);
-
- acre->x_axis.view_min -= x;
- acre->y_axis.view_min += y;
- }
- cairo_restore (cr);
-
/* Then, increase the axis ranges just enough so that the step
* sizes for the ticks will be integers.
*/