Exemple #1
0
 def add_mask(self, x_min, x_max, name = None, is_inclusive = True):
     mask = RangeMask(is_inclusive)
     if not name is None :
         mask.setName(name)
     mask.setBoundary(min(x_min, x_max), max(x_min, x_max))
     self.pv.getPlot().addMask(mask)
     self.pv.getPlot().repaint()
     return mask
Exemple #2
0
 def add_mask_1d(self, x_min, x_max, name=None, is_inclusive=True):
     mask = RangeMask(is_inclusive)
     if not name is None:
         mask.setName(name)
     mask.setBoundary(min(x_min, x_max), max(x_min, x_max))
     self.pv.getPlot().addMask(mask)
     self.pv.getPlot().repaint()
     return mask
Exemple #3
0
 def add_mask_1d(self, x_min, x_max, name = None, is_inclusive = True):
     mask = RangeMask(is_inclusive)
     if not name is None :
         mask.setName(name)
     mask.setBoundary(min(x_min, x_max), max(x_min, x_max))
     
     if not hasattr(self.cache, "masks") :
         self.cache.masks = []
     self.cache.masks.append(mask)
     return mask