code: def __init__(
      self,
      ax,
      x,
      closes,
      color="k",
      width=1,
      alpha=1.0,
      label="_nolegend",
      **kwargs,
  ):
      self.color = color
      self.alpha = alpha
  
      (self.loc,) = self.barcollection(
          x, closes, width=width, label=label, **kwargs
      )
  
      # add collections to the axis and return them
      ax.add_line(self.loc)
  
      # Update the axis
      ax.update_datalim(((x[0], min(closes)), (x[-1], max(closes))))
      ax.autoscale_view()
  
      # Add self as legend handler for this object
      mlegend.Legend.update_default_handler_map({self.loc: self})
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from ..utils.py3 import range, zip
  import matplotlib.collections
  import matplotlib.colors
  import matplotlib.legend
  import matplotlib.lines
  from .utils import shade_color
label_desc: Use image node_id 1 to create a new LineOnClosePlotHandler object from inherited base classes: object with example: obj = LineOnClosePlotHandler(ax, x, closes, color, width, alpha, label)