#define cnt 4
float x[cnt]={0.0, 1., 2., 3.};
float y1[cnt]={0.0, 1., 2., 3.};
float y2[cnt]={1.0, 2., 3., 4.};
#define TYPE float
int main(
int argc,
char *argv[]) {
gtk_init( &argc, &argv );
gtk_widget_set_size_request (topWindow.
getWidget(), 1000, 500);
figure.hold(true);
figure.plot(
x,y2,cnt,
"r1");
figure.limits(-1.0,4.0,-1.,5.0);
figure.grid(true);
figure.title("Figure 1 title");
figure.xLabel("X axis label");
figure.yLabel("Y axis label");