+ /* Draw a full-data-range graph in upper-left. */
+ acre_set_title (acre, "All the data");
+
+ acre_draw (acre, cr, 800, 600);
+
+ /* Zoom in on X and draw at lower-left. */
+ cairo_translate (cr, 0, 600);
+
+ acre_set_title (acre, "Zoom X, auto-size Y");
+ acre_set_x_axis_range (acre, 40, 60);
+
+ acre_draw (acre, cr, 800, 600);
+
+ /* Zoom in on Y and draw at upper-right. */
+ cairo_translate (cr, 800, -600);
+
+ acre_set_title (acre, "Zoom Y, auto-size X");
+ acre_set_x_axis_range_auto (acre);
+ acre_set_y_axis_range (acre, -250, 0);
+
+ acre_draw (acre, cr, 800, 600);
+
+ /* Zoom out on X and Y lower-right. */
+ cairo_translate (cr, 0, 600);
+
+ acre_set_title (acre, "Zoom out X and Y");
+ acre_set_x_axis_range (acre, -50, 150);
+ acre_set_y_axis_range (acre, -1500, 500);
+