Changeset 13233


Ignore:
Timestamp:
03/26/12 15:50:47 (13 years ago)
Author:
neise
Message:
moved matplotlib import statement to __main__, so it is only imported, when needed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/pyscripts/pyfact/generator.py

    r13143 r13233  
    55#
    66import numpy as np
    7 import matplotlib.pyplot as plt
    87
    98class SignalGenerator(object):
     
    125124   
    126125if __name__ == '__main__':
     126    import matplotlib.pyplot as plt
    127127    """ test the class """
    128128    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')
Note: See TracChangeset for help on using the changeset viewer.