Don't print mean depth across the whole profile area
I can't remember why we initially did this instead of ending the horizontal red line whith the last data point of the pressure profile. But especially nuw with more graphs shown the one line that extends past the end of the dive looked really silly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
af939ee4c8
commit
1218e7a5e9
@ -871,16 +871,16 @@ static void plot_depth_profile(struct graphics_context *gc, struct plot_info *pi
|
||||
}
|
||||
cairo_stroke(cr);
|
||||
|
||||
gc->leftx = 0; gc->rightx = maxtime;
|
||||
|
||||
/* Show mean depth */
|
||||
if (! gc->printer) {
|
||||
set_source_rgba(gc, MEAN_DEPTH);
|
||||
move_to(gc, 0, pi->meandepth);
|
||||
line_to(gc, 1, pi->meandepth);
|
||||
line_to(gc, pi->entry[pi->nr - 1].sec, pi->meandepth);
|
||||
cairo_stroke(cr);
|
||||
}
|
||||
|
||||
gc->leftx = 0; gc->rightx = maxtime;
|
||||
|
||||
/*
|
||||
* These are good for debugging text placement etc,
|
||||
* but not for actual display..
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user