summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
256fd06)
I think my intuition here had been to provide at least some padding
between the frame and data. But we should do that explicitly (and
correctly) rather than just throwing in a 0.5 offset.
cairo_t *cr = acre->cr;
cairo_translate (cr,
cairo_t *cr = acre->cr;
cairo_translate (cr,
- acre->chart.x + 0.5,
- acre->chart.y + acre->chart.height - 0.5);
+ acre->chart.x,
+ acre->chart.y + acre->chart.height);
cairo_scale (cr,
acre->chart.width / (acre->x_axis.max - acre->x_axis.min),
- acre->chart.height /(acre->y_axis.max - acre->y_axis.min));
cairo_scale (cr,
acre->chart.width / (acre->x_axis.max - acre->x_axis.min),
- acre->chart.height /(acre->y_axis.max - acre->y_axis.min));