cairo_save(cr);
cairo_translate(cr, x, y);
- /* Dive plot in the upper half */
- show_one_dive(dive, cr, w, h/2);
+ /* We actually want to scale the text and the lines now */
+ cairo_scale(cr, 0.5, 0.5);
+
+ /* Dive plot in the upper half - note the scaling */
+ show_one_dive(dive, cr, w*2, h);
/* Dive information in the lower half */
for (i = 0; i < pi->nr; i++, entry++)
line_to(gc, entry->sec, entry->val);
cairo_close_path(gc->cr);
+ if (gc->printer) {
+ set_source_rgba(gc, 1, 1, 1, 0.2);
+ cairo_fill_preserve(cr);
+ set_source_rgb(gc, 1, 1, 1);
+ cairo_stroke(cr);
+ return;
+ }
cairo_fill(gc->cr);
/* Now do it again for the velocity colors */