[FIX] Optimize the memory used and fix potential corrupted plots in Mokka.
[FIX] Optimize the memory used and fix potential corrupted plots in Mokka.

git-svn-id: ed06c97986a68fa016311908f99ed1538fbb9b5d@1483 93be6e1e-6fcc-11de-baec-69240fdc299a

Biomechanical-ToolKit/BTKCore,letaureau/b-tk.core,xyproto/b-tk.core,letaureau/b-tk.core,xyproto/b-tk.core,xyproto/b-tk.core,Biomechanical-ToolKit/BTKCore,letaureau/b-tk.core,Biomechanical-ToolKit/BTKCore,xyproto/b-tk.core,Biomechanical-ToolKit/BTKCore,letaureau/b-tk.core,Biomechanical-ToolKit/BTKCore,xyproto/b-tk.core,Biomechanical-ToolKit/BTKCore,xyproto/b-tk.core,letaureau/b-tk.core,xyproto/b-tk.core,Biomechanical-ToolKit/BTKCore,letaureau/b-tk.core,letaureau/b-tk.core,letaureau/b-tk.core,xyproto/b-tk.core,Biomechanical-ToolKit/BTKCore