parameters: (self, canvas, color, position, lower_bound, upper_bound, marker_type='XSingle',
                   line_style='-', name=None, axis=None)
docstring: Init the marker.
          :param canvas: The MPL canvas.
          :param color: An MPL colour value
          :param position: The axes coordinate of the marker.
          :param lower_bound: The axes coordinate of the lower bound.
          :param upper_bound: The axes coordinate of the upper bound.
          :param marker_type: Whether the SingleMarker is vertical or horizontal.
          :param line_style: An MPL line style value.
docstring_summary: Init the marker.
          :param canvas: The MPL canvas.
          :param color: An MPL colour value
          :param position: The axes coordinate of the marker.
          :param lower_bound: The axes coordinate of the lower bound.
          :param upper_bound: The axes coordinate of the upper bound.
          :param marker_type: Whether the SingleMarker is vertical or horizontal.
          :param line_style: An MPL line style value.
docstring_tokens: Init the marker . : param canvas : The MPL canvas . : param color : An MPL colour value : param position : The axes coordinate of the marker . : param lower_bound : The axes coordinate of the lower bound . : param upper_bound : The axes coordinate of the upper bound . : param marker_type : Whether the SingleMarker is vertical or horizontal . : param line_style : An MPL line style value .
function: def __init__(self, canvas, color, position, lower_bound, upper_bound, marker_type='XSingle',
                   line_style='-', name=None, axis=None):
          """
          Init the marker.
          :param canvas: The MPL canvas.
          :param color: An MPL colour value
          :param position: The axes coordinate of the marker.
          :param lower_bound: The axes coordinate of the lower bound.
          :param upper_bound: The axes coordinate of the upper bound.
          :param marker_type: Whether the SingleMarker is vertical or horizontal.
          :param line_style: An MPL line style value.
          """
          super(SingleMarker, self).__init__()
          self.lower_bound = lower_bound
          self.upper_bound = upper_bound
          self.marker_type = marker_type
          self.canvas = canvas
          self.annotations = {}
          self.name = name
          self.label_visible = True
          self.style = line_style
          self.color = color
          self.draggable = True
          self.axis = axis
          if self.marker_type == 'XSingle':
              self.marker = VerticalMarker(canvas, color, position, line_style=line_style, axis=self.axis)
          elif self.marker_type == 'YSingle':
              self.marker = HorizontalMarker(canvas, color, position, line_style=line_style, axis=self.axis)
          else:
              raise RuntimeError("Incorrect SingleMarker type provided. Types are XSingle or YSingle.")
  
          # Set default label position
          if self.marker_type == 'YSingle':
              self.label_x_offset = 0.98
              self.label_y_offset = 0.005
          else:
              self.label_x_offset = 0.0
              self.label_y_offset = 0.95
function_tokens: def __init__ ( self , canvas , color , position , lower_bound , upper_bound , marker_type = 'XSingle' , line_style = '-' , name = None , axis = None ) : super ( SingleMarker , self ) . __init__ ( ) self . lower_bound = lower_bound self . upper_bound = upper_bound self . marker_type = marker_type self . canvas = canvas self . annotations = { } self . name = name self . label_visible = True self . style = line_style self . color = color self . draggable = True self . axis = axis if self . marker_type == 'XSingle' : self . marker = VerticalMarker ( canvas , color , position , line_style = line_style , axis = self . axis ) elif self . marker_type == 'YSingle' : self . marker = HorizontalMarker ( canvas , color , position , line_style = line_style , axis = self . axis ) else : raise RuntimeError ( "Incorrect SingleMarker type provided. Types are XSingle or YSingle." ) # Set default label position if self . marker_type == 'YSingle' : self . label_x_offset = 0.98 self . label_y_offset = 0.005 else : self . label_x_offset = 0.0 self . label_y_offset = 0.95