 
 void kernel(float* dev_out)
 {
-    static const dim3 threads(SIZE);
+    static const dim3 threads(DATA_SIZE);
     dim3 blocks(1);
 
     simple_sinf<<< blocks, threads >>>(dev_out);

{
    int x = blockIdx.x * blockDim.x  + threadIdx.x;

    if (x<SIZE) {
        out[ 2 * x ] = x * dx;
        out[ 2 * x + 1 ] = sin(x*dx);
    }

    /* Create several plot objects which creates the necessary
     * vertex buffer objects to hold the different plot types
     */
    fg::Plot plt0( DATA_SIZE, fg::f32);                              //create a default plot
    fg::Plot plt1( DATA_SIZE, fg::f32, fg::FG_LINE, fg::FG_NONE);       //or specify a specific plot type
    fg::Plot plt2( DATA_SIZE, fg::f32, fg::FG_LINE, fg::FG_TRIANGLE);   //last parameter specifies marker shape
    fg::Plot plt3( DATA_SIZE, fg::f32, fg::FG_SCATTER, fg::FG_POINT);

    /*
     * Set plot colors
