+
+static void plot_cylinder_pressure_text(struct dive *dive, cairo_t *cr,
+ double topx, double topy, double maxx, double maxy)
+{
+ double scalex, scaley;
+ double startp,endp;
+
+ cairo_set_font_size(cr, 10);
+
+ if (get_cylinder_pressure_range(dive, &scalex, &scaley,
+ &startp, &endp)) {
+ text_render_options_t tro = {0.2, 1.0, 0.2, LEFT};
+ 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);
+ }
+}
+