[examples] improve gnuplot file for NE_1DS_1Knee
resultfile ="NE_1DS_1Knee_MLCP.dat"
-resultfile ="NE_1DS_1Knee_MLCP_D1MinusLinear.dat"
-
+resultfile_ref ="NE_1DS_1Knee_MLCP.ref"
+#resultfile ="NE_1DS_1Knee_MLCP_D1MinusLinear.dat"
+#resultfile_ref ="NE_1DS_1Knee_MLCP_D1MinusLinear.ref"
#plot resultfile u 1:2
-#resultfile1 ="NE_1DS_1Knee_MLCP_beam1.dat"
+resultfile1 ="NE_1DS_1Knee_MLCP_beam1.dat"
#resultfile1 ="NE_1DS_1Knee_MLCP_D1MinusLinear_beam1.dat"
set label 1 sprintf("Siconos NewtonEulerDS simulation.") at first 0.5 , first 0.5
i=0
set term aqua 0
-#plot resultfile1 u 3*i+1:3*i+3 w lp t 'beam1'
+plot resultfile1 u 3*i+1:3*i+3 w lp t 'beam1'
set term aqua 1
plot resultfile u 1:9 w l t 'norm2(y)'
set term aqua 2
plot resultfile u 1:10 w l t 'norm2(ydot)'
+set term aqua 3
+set xrange [.0:0.5]
+plot resultfile u 1:2 w l t 'q[1]',\
+resultfile_ref every ::1 u 1:2 w l t 'q[1]'
+
set term gif animate
outputfile="animatedonebeam.gif"
@@ -30,4 +36,4 @@ n=1000 #n frames
i=0
every=5
-#load "animonebeam.gp"
+load "animonebeam.gp"
