/[ascend]/trunk/pygtk/interface/incidencematrix.py
ViewVC logotype

Diff of /trunk/pygtk/interface/incidencematrix.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 260 by johnpye, Thu Feb 2 15:31:29 2006 UTC revision 463 by johnpye, Sun Apr 16 10:18:16 2006 UTC
# Line 1  Line 1 
1  import pylab;  import config
2    import matplotlib
3    import numarray
4    matplotlib.rcParams['numerix'] = 'numarray'  
5    
6    import pylab
7    import platform
8  from matplotlib.colors import LinearSegmentedColormap  from matplotlib.colors import LinearSegmentedColormap
9    
10  class IncidenceMatrixWindow:  class IncidenceMatrixWindow:
# Line 40  class IncidenceMatrixWindow: Line 46  class IncidenceMatrixWindow:
46          pylab.ylabel("Relations")          pylab.ylabel("Relations")
47          pylab.connect('motion_notify_event',self.on_sparsity_motion_notify)          pylab.connect('motion_notify_event',self.on_sparsity_motion_notify)
48          pylab.ion()          pylab.ion()
49          pylab.show(False)          if platform.system()=="Windows":
50                pylab.show()
51            else:
52                pylab.show(False)
53    
54      def on_sparsity_motion_notify(self, event):      def on_sparsity_motion_notify(self, event):
55          if event.xdata != None and event.ydata != None:          if event.xdata != None and event.ydata != None:

Legend:
Removed from v.260  
changed lines
  Added in v.463

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22