- plot_smoothed_profile(gc, pi);
- plot_minmax_profile(gc, pi);
-
- entry = pi->entry;
- set_source_rgba(gc, 1, 0.2, 0.2, 0.80);
- secs = (int *) malloc(sizeof(int) * pi->nr);
- depths = (int *) malloc(sizeof(int) * pi->nr);
- secs[0] = entry->sec;
- depths[0] = entry->val;
- for (i = 1; i < pi->nr; i++) {
- entry++;
- sec = entry->sec;
- if (sec <= maxtime || entry->val > 0) {
- /* we want to draw the segments in different colors
- * representing the vertical velocity, so we need to
- * chop this into short segments */
- rgb_t color = rgb[entry->velocity];
- depth = entry->val;
- set_source_rgb(gc, color.r, color.g, color.b);
- move_to(gc, secs[i-1], depths[i-1]);
- line_to(gc, sec, depth);
- cairo_stroke(cr);
- ends = i;
- }
- secs[i] = sec;
- depths[i] = depth;
+ /*
+ * These are good for debugging text placement etc,
+ * but not for actual display..
+ */
+ if (0) {
+ plot_smoothed_profile(gc, pi);
+ plot_minmax_profile(gc, pi);