parameters: (self, i_key, color)
return_statement: return
docstring: Update indicator with new color
          :param i_key:
          :param vec_x:
          :param vec_y:
          :param color:
          :return:
docstring_summary: Update indicator with new color
          :param i_key:
          :param vec_x:
          :param vec_y:
          :param color:
          :return:
docstring_tokens: Update indicator with new color : param i_key : : param vec_x : : param vec_y : : param color : : return :
function: def update_indicator(self, i_key, color):
          """
          Update indicator with new color
          :param i_key:
          :param vec_x:
          :param vec_y:
          :param color:
          :return:
          """
          if self._myIndicatorsManager.get_line_type(i_key) < 2:
              # horizontal or vertical
              canvas_line_index = self._myIndicatorsManager.get_canvas_line_index(i_key)
              self._myCanvas.updateLine(ikey=canvas_line_index, vecx=None, vecy=None, linecolor=color)
          else:
              # 2-way
              canvas_line_index_h, canvas_line_index_v = self._myIndicatorsManager.get_canvas_line_index(i_key)
              # h_vec_set, v_vec_set = self._myIndicatorsManager.get_2way_data(i_key)
  
              self._myCanvas.updateLine(ikey=canvas_line_index_h, vecx=None, vecy=None, linecolor=color)
              self._myCanvas.updateLine(ikey=canvas_line_index_v, vecx=None, vecy=None, linecolor=color)
  
          return
function_tokens: def update_indicator ( self , i_key , color ) : if self . _myIndicatorsManager . get_line_type ( i_key ) < 2 : # horizontal or vertical canvas_line_index = self . _myIndicatorsManager . get_canvas_line_index ( i_key ) self . _myCanvas . updateLine ( ikey = canvas_line_index , vecx = None , vecy = None , linecolor = color ) else : # 2-way canvas_line_index_h , canvas_line_index_v = self . _myIndicatorsManager . get_canvas_line_index ( i_key ) # h_vec_set, v_vec_set = self._myIndicatorsManager.get_2way_data(i_key) self . _myCanvas . updateLine ( ikey = canvas_line_index_h , vecx = None , vecy = None , linecolor = color ) self . _myCanvas . updateLine ( ikey = canvas_line_index_v , vecx = None , vecy = None , linecolor = color ) return