GtkCurve::set_range

void set_range(double min_x, double max_x, double min_y, double max_y);

Use this method if you want to bind the curve to certain minimum and maximum values. The four parameters passed are the minimum x, maximum x, minimum y and maximum y values respectively.

The curve is automatically reset with a call to reset() when this function is used.