code: def __init__(
      self,
      ax,
      x,
      opens,
      highs,
      lows,
      closes,
      colorup="k",
      colordown="r",
      width=1,
      tickwidth=0.5,
      alpha=1.0,
      label="_nolegend",
      **kwargs,
  ):
      # Manager up/down bar colors
      r, g, b = mcolors.colorConverter.to_rgb(colorup)
      self.colorup = r, g, b, alpha
      r, g, b = mcolors.colorConverter.to_rgb(colordown)
      self.colordown = r, g, b, alpha
  
      bcol, ocol, ccol = self.barcollection(
          x,
          opens,
          highs,
          lows,
          closes,
          width=width,
          tickwidth=tickwidth,
          label=label,
          **kwargs,
      )
  
      self.barcol = bcol
      self.opencol = ocol
      self.closecol = ccol
  
      # add collections to the axis and return them
      ax.add_collection(self.barcol)
      ax.add_collection(self.opencol)
      ax.add_collection(self.closecol)
  
      # Update the axis
      ax.update_datalim(((0, min(lows)), (len(opens), max(highs))))
      ax.autoscale_view()
  
      # Add self as legend handler for this object
      mlegend.Legend.update_default_handler_map({self.barcol: 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 OHLCPlotHandler object from inherited base classes: object with example: obj = OHLCPlotHandler(ax, x, opens, highs, lows, closes, colorup, colordown, width, tickwidth, alpha, label)