X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=profile.c;h=3b69f18398d2888b41be42a76bd1c603eebc1600;hb=e1019cafa87058562d9f5844619841546029a57c;hp=9f8fa75b37e8739a8d0144af6e093c716006df00;hpb=4e876b3082b46913d71e0f9bb6ff084aca4a2184;p=ext%2Fsubsurface.git diff --git a/profile.c b/profile.c index 9f8fa75..3b69f18 100644 --- a/profile.c +++ b/profile.c @@ -620,14 +620,13 @@ static const rgb_t sac_color[SAC_COLORS] = { static void set_sac_color(struct graphics_context *gc, int sac, int avg_sac) { int sac_index = 0; - int delta = sac - avg_sac + 6000; + int delta = sac - avg_sac + 7000; sac_index = delta / 2000; if (sac_index < 0) sac_index = 0; if (sac_index > SAC_COLORS - 1) sac_index = SAC_COLORS - 1; - set_source_rgb_struct(gc, &sac_color[sac_index]); } @@ -1312,13 +1311,13 @@ void plot(struct graphics_context *gc, cairo_rectangle_int_t *drawing_area, stru /* Temperature profile */ plot_temperature_profile(gc, pi); - /* Cylinder pressure plot */ - plot_cylinder_pressure(gc, pi, dive); - /* Depth profile */ plot_depth_profile(gc, pi); plot_events(gc, pi, dive); + /* Cylinder pressure plot */ + plot_cylinder_pressure(gc, pi, dive); + /* Text on top of all graphs.. */ plot_temperature_text(gc, pi); plot_depth_text(gc, pi);