From 522c0fe131cd096fdc84d779777590a03f605d8c Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Tue, 18 Nov 2014 14:55:29 +0000
Subject: [PATCH] Correction of the bug affecting the plotting scripts in the
 remaining scripts

---
 examples/plot_sorted_all.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/plot_sorted_all.py b/examples/plot_sorted_all.py
index a117bd2..7defd5a 100644
--- a/examples/plot_sorted_all.py
+++ b/examples/plot_sorted_all.py
@@ -63,11 +63,11 @@ accz_bh=data[:,13]
 # Build error ------------------------------------------------
     
 errx_s = (accx_s - accx_u ) / sqrt(accx_u**2 + accy_u**2 + accz_u**2) 
-erry_s = (accy_s - accy_u ) / sqrt(accy_u**2 + accy_u**2 + accz_u**2) 
+erry_s = (accy_s - accy_u ) / sqrt(accx_u**2 + accy_u**2 + accz_u**2) 
 errz_s = (accz_s - accz_u ) / sqrt(accx_u**2 + accy_u**2 + accz_u**2) 
 
 errx_bh = (accx_bh - accx_u ) / sqrt(accx_u**2 + accy_u**2 + accz_u**2) 
-erry_bh = (accy_bh - accy_u ) / sqrt(accy_u**2 + accy_u**2 + accz_u**2) 
+erry_bh = (accy_bh - accy_u ) / sqrt(accx_u**2 + accy_u**2 + accz_u**2) 
 errz_bh = (accz_bh - accz_u ) / sqrt(accx_u**2 + accy_u**2 + accz_u**2) 
 
 e_errx_s = errx_s#[abs(errx_s) > 0.001]
-- 
GitLab