/[escript]/trunk/pyvisi/py_src/scalarbar.py
ViewVC logotype

Diff of /trunk/pyvisi/py_src/scalarbar.py

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

revision 1197 by jongui, Mon Jun 18 02:08:34 2007 UTC revision 1199 by jongui, Wed Jun 20 05:01:30 2007 UTC
# Line 41  class ScalarBar: Line 41  class ScalarBar:
41          """          """
42    
43          self.__vtk_scalar_bar.GetPositionCoordinate().SetCoordinateSystemToViewport()          self.__vtk_scalar_bar.GetPositionCoordinate().SetCoordinateSystemToViewport()
44            # Set the default number of labels on the scalar bar to 8.
45          self.setNumberOfLabels(8)          self.setNumberOfLabels(8)
46          # Set the default color of the scalar bar's title and label to black.          # Set the default color of the scalar bar's title and label to black.
47          self.setTitleColor(Color.BLACK)          self.setTitleColor(Color.BLACK)
# Line 60  class ScalarBar: Line 61  class ScalarBar:
61    
62      def setNumberOfLabels(self, labels):      def setNumberOfLabels(self, labels):
63          """          """
64          Set the number of lables on the scalar bar.          Set the number of labels on the scalar bar.
65    
66          @type labels: Number          @type labels: Number
67          @param labels: Number of labels on the scalar bar          @param labels: Number of labels on the scalar bar
# Line 95  class ScalarBar: Line 96  class ScalarBar:
96          """          """
97    
98          self.__vtk_scalar_bar.SetOrientationToHorizontal()          self.__vtk_scalar_bar.SetOrientationToHorizontal()
99            # Default width, height and position for a horizontal scalar bar.
100          self.setWidth(0.8)          self.setWidth(0.8)
101          self.setHeight(0.10)          self.setHeight(0.10)
102          self.setPosition(LocalPosition(130,5))          self.setPosition(LocalPosition(130,5))
# Line 105  class ScalarBar: Line 107  class ScalarBar:
107          """          """
108    
109          self.__vtk_scalar_bar.SetOrientationToVertical()          self.__vtk_scalar_bar.SetOrientationToVertical()
110            # Default width, height and position for a vertical scalar bar.
111          self.setWidth(0.14)          self.setWidth(0.14)
112          self.setHeight(0.85)          self.setHeight(0.85)
113          self.setPosition(LocalPosition(5,150))          self.setPosition(LocalPosition(5,150))

Legend:
Removed from v.1197  
changed lines
  Added in v.1199

  ViewVC Help
Powered by ViewVC 1.1.26