parameters: (self,
                                 y_pos,
                                 lower,
                                 upper,
                                 axis,
                                 name=None,
                                 line_style='dashed',
                                 color=VALID_COLORS['green'])
docstring: Add a horizontal marker to the plot and append it to the list of open markers
          :param y_pos: position to plot the marker to
          :param lower: x value to start the marker at
          :param upper: x value to stop the marker at
          :param name: label displayed beside the marker
          :param line_style: 'solid', 'dashed', etc.
          :param color: 'r', 'g', 'b' etc. or some hex code
docstring_summary: Add a horizontal marker to the plot and append it to the list of open markers
          :param y_pos: position to plot the marker to
          :param lower: x value to start the marker at
          :param upper: x value to stop the marker at
          :param name: label displayed beside the marker
          :param line_style: 'solid', 'dashed', etc.
          :param color: 'r', 'g', 'b' etc. or some hex code
docstring_tokens: Add a horizontal marker to the plot and append it to the list of open markers : param y_pos : position to plot the marker to : param lower : x value to start the marker at : param upper : x value to stop the marker at : param name : label displayed beside the marker : param line_style : solid dashed etc . : param color : r g b etc . or some hex code
function: def _add_horizontal_marker(self,
                                 y_pos,
                                 lower,
                                 upper,
                                 axis,
                                 name=None,
                                 line_style='dashed',
                                 color=VALID_COLORS['green']):
          """
          Add a horizontal marker to the plot and append it to the list of open markers
          :param y_pos: position to plot the marker to
          :param lower: x value to start the marker at
          :param upper: x value to stop the marker at
          :param name: label displayed beside the marker
          :param line_style: 'solid', 'dashed', etc.
          :param color: 'r', 'g', 'b' etc. or some hex code
          """
          if name is None:
              name = self._get_free_marker_name()
          marker = SingleMarker(
              self.canvas,
              color,
              y_pos,
              lower,
              upper,
              name=name,
              marker_type='YSingle',
              line_style=line_style,
              axis=axis)
          marker.add_name()
          marker.redraw()
          self.markers.append(marker)
function_tokens: def _add_horizontal_marker ( self , y_pos , lower , upper , axis , name = None , line_style = 'dashed' , color = VALID_COLORS [ 'green' ] ) : if name is None : name = self . _get_free_marker_name ( ) marker = SingleMarker ( self . canvas , color , y_pos , lower , upper , name = name , marker_type = 'YSingle' , line_style = line_style , axis = axis ) marker . add_name ( ) marker . redraw ( ) self . markers . append ( marker )