Index: fact/tools/pyscripts/pyfact/plotter.py
===================================================================
--- fact/tools/pyscripts/pyfact/plotter.py	(revision 12992)
+++ fact/tools/pyscripts/pyfact/plotter.py	(revision 13011)
@@ -9,36 +9,11 @@
 import matplotlib.pyplot as plt
 
-class UniqueID(object):
-    """ provide a unique identifier accross objects """
-    
-    def __init__(self, start_value=1):
-        """ initialize the object """
-        
-        self.value = start_value
-        
-    def __call__(self):
-        """ return the present id and compute the next one """
-        
-        value = self.value
-        self.value += 1
-        
-        return(value)
-        
-def _test_UniqueID(start_value=1):
-    
-    fig_id = UniqueID(start_value)
-    
-    for i in range(10):
-        print 'fig_id: ', fig_id()
-        
-
 class Plotter(object):
     """ simple x-y plot """
-    def __init__(self, name, x, my_id, style = 'b', xlabel='x', ylabel='y'):
+    def __init__(self, name, x, style = 'b', xlabel='x', ylabel='y'):
         """ initialize the object """
         
         self.name  = name
-        self.fig_id = my_id()
-        plt.figure(self.fig_id)
+        self.fig   = plt.figure()
         self.line, = plt.plot(x, style)
         
@@ -50,5 +25,5 @@
     def __call__(self, ydata):
         """ set ydata of plot """
-        plt.figure(self.fig_id)
+        plt.figure(self.fig.number)
         plt.ylim( np.min(ydata), np.max(ydata) )
         self.line.set_ydata(ydata)
@@ -58,12 +33,11 @@
     """ test of maintaining two independant plotter instances """
     
-    plotter_id = UniqueID(1)
     plt.ion()
     
     x = np.linspace(0., 10.)
-    plot1 = Plotter('plot1', x, plotter_id, 'r')
-    print 'plot1.fig_id: ', plot1.fig_id
-    plot2 = Plotter('plot2', x, plotter_id, 'g.')
-    #print 'plot2.fig_id: ', plot2.fig_id
+    plot1 = Plotter('plot1', x, 'r')
+    print 'plot1.fig.number: ', plot1.fig.number
+    plot2 = Plotter('plot2', x, 'g.')
+    print 'plot2.fig.number: ', plot2.fig.number
     
     plot1(np.sin(x) * 7.)
