Index: /fact/tools/pyscripts/pyfact/plotters.py
===================================================================
--- /fact/tools/pyscripts/pyfact/plotters.py	(revision 13117)
+++ /fact/tools/pyscripts/pyfact/plotters.py	(revision 13118)
@@ -10,4 +10,48 @@
 import os.path
 import sys
+
+# this class was formerly called Plotter in the depricated
+# module plotter.py
+class SimplePlotter(object):
+    """ simple x-y plot """
+    def __init__(self, name, x, style = 'b', xlabel='x', ylabel='y'):
+        """ initialize the object """
+        
+        self.name  = name
+        self.fig   = plt.figure()
+        self.line, = plt.plot(x, style)
+        
+        plt.title(name)
+        plt.xlabel(xlabel)
+        plt.ylabel(ylabel)
+        plt.grid(True)
+           
+    def __call__(self, ydata):
+        """ set ydata of plot """
+        plt.figure(self.fig.number)
+        plt.ylim( np.min(ydata), np.max(ydata) )
+        self.line.set_ydata(ydata)
+        plt.draw()
+            
+def _test_SimplePlotter():
+    """ test of maintaining two independant plotter instances """
+    plt.ion()
+    
+    x = np.linspace(0., 10.)
+    plot1 = SimplePlotter('plot1', x, 'r')
+    print 'plot1.fig.number: ', plot1.fig.number
+    plot2 = SimplePlotter('plot2', x, 'g.')
+    print 'plot2.fig.number: ', plot2.fig.number
+    
+    plot1(np.sin(x) * 7.)
+    plot2(x*x)
+    
+    raw_input('next')
+    
+    plot1(np.cos(x) * 3.)
+    plot2(x)
+    
+    raw_input('next')
+
 
 class Plotter(object):
@@ -340,5 +384,11 @@
 if __name__ == '__main__':
     """ test the class """
-    #_test_Plotter()
+    print ' testing SimplePlotter'
+    _test_SimplePlotter()
+    print ' testing Plotter'
+    _test_Plotter()
+    print 'testing CamPlotter ... testing what happens if doubled IDs in mask'
     _test_CamPlotter()
-    #_test_HistPlotter()
+    print 'testing basic HistPlotter functionality'
+    _test_HistPlotter()
+    
