- plot_text(cr, &tro, SCALE(0, startp), "%3.0f bar", startp/1000.0);
- plot_text(cr, &tro, SCALE(dive->duration.seconds, endp),
- "%3.0f bar", endp/1000.0);
+ plot_text(cr, &tro, SCALE(0, startp.mbar), "%d %s", start, unit);
+ plot_text(cr, &tro, SCALE(dive->duration.seconds, endp.mbar),
+ "%d %s", end, unit);