parameters: (self)
return_statement: return
docstring: Remove the rectangular for region of interest
          :return:
docstring_summary: Remove the rectangular for region of interest
          :return:
docstring_tokens: Remove the rectangular for region of interest : return :
function: def remove_roi(self):
          """
          Remove the rectangular for region of interest
          :return:
          """
          print ('[DB...BAT] Try to remove ROI {0}'.format(self._myPolygon))
          if self._myPolygon is not None:
              # polygon is of type matplotlib.patches.Polygon
              self._myPolygon.remove()
              self._myPolygon = None
  
              # FUTURE-TO-DO: this should be replaced by some update() method of canvas
              self._myCanvas._flush()
  
              self._roiStart = None
              self._roiEnd = None
  
          else:
              print ('[NOTICE] Polygon is None.  Nothing to remove')
  
          return
function_tokens: def remove_roi ( self ) : print ( '[DB...BAT] Try to remove ROI {0}' . format ( self . _myPolygon ) ) if self . _myPolygon is not None : # polygon is of type matplotlib.patches.Polygon self . _myPolygon . remove ( ) self . _myPolygon = None # FUTURE-TO-DO: this should be replaced by some update() method of canvas self . _myCanvas . _flush ( ) self . _roiStart = None self . _roiEnd = None else : print ( '[NOTICE] Polygon is None.  Nothing to remove' ) return