class_docstr: ColorMap(pos, color, mapping=ColorMap.CLIP)
  
  ColorMap stores a mapping of specific data values to colors, for example:
  
      | 0.0 → black
      | 0.2 → red
      | 0.6 → yellow
      | 1.0 → white
  
  The colors for intermediate values are determined by interpolating between
  the two nearest colors in RGB color space.
  
  A ColorMap object provides access to the interpolated colors by indexing with a float value:
  ``cm[0.5]`` returns a QColor corresponding to the center of ColorMap `cm`.
docstr: Returns a QBrush painting with the color map applied over the selected span of plot values.
  When the mapping mode is set to `ColorMap.MIRROR`, the selected span includes the color map twice,
  first in reversed order and then normal.
  
  It is recommended to store and reuse this gradient brush instead of regenerating it repeatedly.
  
  Parameters
  ----------
  span : tuple of float, optional
      Span of data values covered by the gradient:
  
        - Color map value 0.0 will appear at `min`,
        - Color map value 1.0 will appear at `max`.
      
      Default value is (0., 1.)
  
  orientation : str, default 'vertical'
      Orientation of the gradient:
  
        - 'vertical': `span` corresponds to the `y` coordinate.
        - 'horizontal': `span` corresponds to the `x` coordinate.
docstr_tok: ["Returns","a","QBrush","painting","with","the","color","map","applied","over","the","selected","span","of","plot","values",".","When","the","mapping","mode","is","set","to","`","ColorMap.MIRROR","`",",","the","selected","span","includes","the","color","map","twice",",","first","in","reversed","order","and","then","normal",".","It","is","recommended","to","store","and","reuse","this","gradient","brush","instead","of","regenerating","it","repeatedly",".","Parameters","--","--","--","--","--","span",":","tuple","of","float",",","optional","Span","of","data","values","covered","by","the","gradient",":","-","Color","map","value","0.0","will","appear","at","`","min","`",",","-","Color","map","value","1.0","will","appear","at","`","max","`",".","Default","value","is","(","0.",",","1",".",")","orientation",":","str",",","default","'vertical'","Orientation","of","the","gradient",":","-","'vertical","'",":","`","span","`","corresponds","to","the","`","y","`","coordinate",".","-","'horizontal","'",":","`","span","`","corresponds","to","the","`","x","`","coordinate","."]
code: def getBrush(self, span=(0.0, 1.0), orientation="vertical"):
      """
      Returns a QBrush painting with the color map applied over the selected span of plot values.
      When the mapping mode is set to `ColorMap.MIRROR`, the selected span includes the color map twice,
      first in reversed order and then normal.
  
      It is recommended to store and reuse this gradient brush instead of regenerating it repeatedly.
  
      Parameters
      ----------
      span : tuple of float, optional
          Span of data values covered by the gradient:
  
            - Color map value 0.0 will appear at `min`,
            - Color map value 1.0 will appear at `max`.
  
          Default value is (0., 1.)
  
      orientation : str, default 'vertical'
          Orientation of the gradient:
  
            - 'vertical': `span` corresponds to the `y` coordinate.
            - 'horizontal': `span` corresponds to the `x` coordinate.
      """
      if orientation == "vertical":
          grad = self.getGradient(
              p1=QtCore.QPointF(0.0, span[0]),
              p2=QtCore.QPointF(0.0, span[1]),
          )
      elif orientation == "horizontal":
          grad = self.getGradient(
              p1=QtCore.QPointF(span[0], 0.0),
              p2=QtCore.QPointF(span[1], 0.0),
          )
      else:
          raise ValueError(
              "Orientation must be 'vertical' or 'horizontal'"
          )
      return QtGui.QBrush(grad)
  
imports: from collections.abc import Callable, Sequence
  from os import listdir, path
  import numpy
  from .functions import clip_array, clip_scalar, colorDistance, eq, mkColor
  from .Qt import QtCore, QtGui
label_desc: Use image node_id 14 for calling the ColorMap obj's underlying member method code with example usage: obj.getBrush(span, orientation) and returns: QtGui