Index: fact/tools/pyscripts/pyfact/generator.py
===================================================================
--- fact/tools/pyscripts/pyfact/generator.py	(revision 13232)
+++ fact/tools/pyscripts/pyfact/generator.py	(revision 13233)
@@ -5,5 +5,4 @@
 #
 import numpy as np
-import matplotlib.pyplot as plt
 
 class SignalGenerator(object):
@@ -125,4 +124,5 @@
     
 if __name__ == '__main__':
+    import matplotlib.pyplot as plt
     """ test the class """
     myGenerator = SignalGenerator('len 400 noise 0.3 bsl -2.5 triangle 50 10.2 10 100 65 10 150 20 180 10 250 10 spike 100 50. 20 50 21 49')
