Calculate error relatively to reference
Plot reference together with output