docstr: Valid keyword options are:
  x, x0, x1, y, y0, y1, width, height, pen, brush
  
  x specifies the x-position of the center of the bar.
  x0, x1 specify left and right edges of the bar, respectively.
  width specifies distance from x0 to x1.
  You may specify any combination:
      
      x, width
      x0, width
      x1, width
      x0, x1
      
  Likewise y, y0, y1, and height. 
  If only height is specified, then y0 will be set to 0
  
  Example uses:
  
      BarGraphItem(x=range(5), height=[1,5,2,4,3], width=0.5)
      
docstr_tok: ["Valid","keyword","options","are",":","x",",","x0",",","x1",",","y",",","y0",",","y1",",","width",",","height",",","pen",",","brush","x","specifies","the","x-position","of","the","center","of","the","bar",".","x0",",","x1","specify","left","and","right","edges","of","the","bar",",","respectively",".","width","specifies","distance","from","x0","to","x1",".","You","may","specify","any","combination",":","x",",","width","x0",",","width","x1",",","width","x0",",","x1","Likewise","y",",","y0",",","y1",",","and","height",".","If","only","height","is","specified",",","then","y0","will","be","set","to","0","Example","uses",":","BarGraphItem","(","x=range","(","5",")",",","height=","[","1,5,2,4,3","]",",","width=0.5",")"]
code: def __init__(self, **opts):
      """
      Valid keyword options are:
      x, x0, x1, y, y0, y1, width, height, pen, brush
  
      x specifies the x-position of the center of the bar.
      x0, x1 specify left and right edges of the bar, respectively.
      width specifies distance from x0 to x1.
      You may specify any combination:
  
          x, width
          x0, width
          x1, width
          x0, x1
  
      Likewise y, y0, y1, and height.
      If only height is specified, then y0 will be set to 0
  
      Example uses:
  
          BarGraphItem(x=range(5), height=[1,5,2,4,3], width=0.5)
  
  
      """
      GraphicsObject.__init__(self)
      self.opts = dict(
          x=None,
          y=None,
          x0=None,
          y0=None,
          x1=None,
          y1=None,
          name=None,
          height=None,
          width=None,
          pen=None,
          brush=None,
          pens=None,
          brushes=None,
      )
  
      if "pen" not in opts:
          opts["pen"] = getConfigOption("foreground")
      if "brush" not in opts:
          opts["brush"] = (128, 128, 128)
      # the first call to _updateColors() will thus always be an update
  
      self._rectarray = Qt.internals.PrimitiveArray(QtCore.QRectF, 4)
      self._shape = None
      self.picture = None
      self.setOpts(**opts)
  
imports: import numpy
  from ..None import functions
  from ..None import getConfigOption
  from ..None import Qt
  from ..Qt import QtCore, QtGui
  from .GraphicsObject import GraphicsObject
label_desc: Use image node_id 1 to create a new BarGraphItem object from inherited base classes: GraphicsObject with example: obj = BarGraphItem()