pi->maxpressure, pi->mintemp, pi->maxtemp);
for (i = 0; i < pi->nr; i++)
printf(" entry[%d]:{same_cylinder:%d cylinderindex:%d sec:%d pressure:{%d,%d}\n"
- " temperature:%d depth:%d smoothed:%d}\n",
+ " time:%d:%02d temperature:%d depth:%d smoothed:%d}\n",
i, pi->entry[i].same_cylinder, pi->entry[i].cylinderindex, pi->entry[i].sec,
pi->entry[i].pressure[0], pi->entry[i].pressure[1],
+ pi->entry[i].sec / 60, pi->entry[i].sec % 60,
pi->entry[i].temperature, pi->entry[i].depth, pi->entry[i].smoothed);
printf(" }\n");
}
for (i = 0; i < pi->nr; i++, entry++)
line_to(gc, entry->sec, entry->depth);
cairo_close_path(gc->cr);
-/*
- if (gc->printer) {
- set_source_rgba(gc, DEPTH_FILL_PRINTER);
- cairo_fill_preserve(cr);
- set_source_rgba(gc, DEPTH_STROKE_PRINTER);
- cairo_stroke(cr);
- return;
- }
-*/ cairo_fill(gc->cr);
+
+ cairo_fill(gc->cr);
/* Now do it again for the velocity colors */
entry = pi->entry;
gc->maxx = (drawing_area->width - 2*drawing_area->x);
gc->maxy = (drawing_area->height - 2*drawing_area->y);
- /* Temperature profile */
- plot_temperature_profile(gc, pi);
-
/* Depth profile */
plot_depth_profile(gc, pi);
plot_events(gc, pi, dive);
+ /* Temperature profile */
+ plot_temperature_profile(gc, pi);
+
/* Cylinder pressure plot */
plot_cylinder_pressure(gc, pi, dive);