class_docstr: GraphicsItem showing a single plot axis with ticks, values, and label.
  Can be configured to fit on any side of a plot, 
  Can automatically synchronize its displayed scale with ViewBox items.
  Ticks can be extended to draw a grid.
  If maxTickLength is negative, ticks point into the plot.
docstr: Set various style options.
  
  ===================== =======================================================
  Keyword Arguments:
  tickLength            (int) The maximum length of ticks in pixels.
                        Positive values point toward the text; negative
                        values point away.
  tickTextOffset        (int) reserved spacing between text and axis in px
  tickTextWidth         (int) Horizontal space reserved for tick text in px
  tickTextHeight        (int) Vertical space reserved for tick text in px
  autoExpandTextSpace   (bool) Automatically expand text space if the tick
                        strings become too long.
  autoReduceTextSpace   (bool) Automatically shrink the axis if necessary
  hideOverlappingLabels (bool or int)
  
                        * *True*  (default for horizontal axis): Hide tick labels which extend beyond the AxisItem's geometry rectangle.
                        * *False* (default for vertical axis): Labels may be drawn extending beyond the extent of the axis.
                        * *(int)* sets the tolerance limit for how many pixels a label is allowed to extend beyond the axis. Defaults to 15 for `hideOverlappingLabels = False`.
  
  tickFont              (QFont or None) Determines the font used for tick
                        values. Use None for the default font.
  stopAxisAtTick        (tuple: (bool min, bool max)) If True, the axis
                        line is drawn only as far as the last tick.
                        Otherwise, the line is drawn to the edge of the
                        AxisItem boundary.
  textFillLimits        (list of (tick #, % fill) tuples). This structure
                        determines how the AxisItem decides how many ticks
                        should have text appear next to them. Each tuple in
                        the list specifies what fraction of the axis length
                        may be occupied by text, given the number of ticks
                        that already have text displayed. For example::
  
                            [(0, 0.8), # Never fill more than 80% of the axis
                             (2, 0.6), # If we already have 2 ticks with text,
                                       # fill no more than 60% of the axis
                             (4, 0.4), # If we already have 4 ticks with text,
                                       # fill no more than 40% of the axis
                             (6, 0.2)] # If we already have 6 ticks with text,
                                       # fill no more than 20% of the axis
  
  showValues            (bool) indicates whether text is displayed adjacent
                        to ticks.
  tickAlpha             (float or int or None) If None, pyqtgraph will draw the
                        ticks with the alpha it deems appropriate.  Otherwise,
                        the alpha will be fixed at the value passed.  With int,
                        accepted values are [0..255].  With value of type
                        float, accepted values are from [0..1].
  ===================== =======================================================
  
  Added in version 0.9.9
docstr_tok: ["Set","various","style","options",".","=====================","=======================================================","Keyword","Arguments",":","tickLength","(","int",")","The","maximum","length","of","ticks","in","pixels",".","Positive","values","point","toward","the","text",";","negative","values","point","away",".","tickTextOffset","(","int",")","reserved","spacing","between","text","and","axis","in","px","tickTextWidth","(","int",")","Horizontal","space","reserved","for","tick","text","in","px","tickTextHeight","(","int",")","Vertical","space","reserved","for","tick","text","in","px","autoExpandTextSpace","(","bool",")","Automatically","expand","text","space","if","the","tick","strings","become","too","long",".","autoReduceTextSpace","(","bool",")","Automatically","shrink","the","axis","if","necessary","hideOverlappingLabels","(","bool","or","int",")","*","*","True","*","(","default","for","horizontal","axis",")",":","Hide","tick","labels","which","extend","beyond","the","AxisItem","'s","geometry","rectangle",".","*","*","False","*","(","default","for","vertical","axis",")",":","Labels","may","be","drawn","extending","beyond","the","extent","of","the","axis",".","*","*","(","int",")","*","sets","the","tolerance","limit","for","how","many","pixels","a","label","is","allowed","to","extend","beyond","the","axis",".","Defaults","to","15","for","`","hideOverlappingLabels","=","False","`",".","tickFont","(","QFont","or","None",")","Determines","the","font","used","for","tick","values",".","Use","None","for","the","default","font",".","stopAxisAtTick","(","tuple",":","(","bool","min",",","bool","max",")",")","If","True",",","the","axis","line","is","drawn","only","as","far","as","the","last","tick",".","Otherwise",",","the","line","is","drawn","to","the","edge","of","the","AxisItem","boundary",".","textFillLimits","(","list","of","(","tick","#",",","%","fill",")","tuples",")",".","This","structure","determines","how","the","AxisItem","decides","how","many","ticks","should","have","text","appear","next","to","them",".","Each","tuple","in","the","list","specifies","what","fraction","of","the","axis","length","may","be","occupied","by","text",",","given","the","number","of","ticks","that","already","have","text","displayed",".","For","example",":",":","[","(","0",",","0.8",")",",","#","Never","fill","more","than","80","%","of","the","axis","(","2",",","0.6",")",",","#","If","we","already","have","2","ticks","with","text",",","#","fill","no","more","than","60","%","of","the","axis","(","4",",","0.4",")",",","#","If","we","already","have","4","ticks","with","text",",","#","fill","no","more","than","40","%","of","the","axis","(","6",",","0.2",")","]","#","If","we","already","have","6","ticks","with","text",",","#","fill","no","more","than","20","%","of","the","axis","showValues","(","bool",")","indicates","whether","text","is","displayed","adjacent","to","ticks",".","tickAlpha","(","float","or","int","or","None",")","If","None",",","pyqtgraph","will","draw","the","ticks","with","the","alpha","it","deems","appropriate",".","Otherwise",",","the","alpha","will","be","fixed","at","the","value","passed",".","With","int",",","accepted","values","are","[","0","..","255","]",".","With","value","of","type","float",",","accepted","values","are","from","[","0","..","1","]",".","=====================","=======================================================","Added","in","version","0.9.9"]
code: def setStyle(self, **kwds):
      """
      Set various style options.
  
      ===================== =======================================================
      Keyword Arguments:
      tickLength            (int) The maximum length of ticks in pixels.
                            Positive values point toward the text; negative
                            values point away.
      tickTextOffset        (int) reserved spacing between text and axis in px
      tickTextWidth         (int) Horizontal space reserved for tick text in px
      tickTextHeight        (int) Vertical space reserved for tick text in px
      autoExpandTextSpace   (bool) Automatically expand text space if the tick
                            strings become too long.
      autoReduceTextSpace   (bool) Automatically shrink the axis if necessary
      hideOverlappingLabels (bool or int)
  
                            * *True*  (default for horizontal axis): Hide tick labels which extend beyond the AxisItem's geometry rectangle.
                            * *False* (default for vertical axis): Labels may be drawn extending beyond the extent of the axis.
                            * *(int)* sets the tolerance limit for how many pixels a label is allowed to extend beyond the axis. Defaults to 15 for `hideOverlappingLabels = False`.
  
      tickFont              (QFont or None) Determines the font used for tick
                            values. Use None for the default font.
      stopAxisAtTick        (tuple: (bool min, bool max)) If True, the axis
                            line is drawn only as far as the last tick.
                            Otherwise, the line is drawn to the edge of the
                            AxisItem boundary.
      textFillLimits        (list of (tick #, % fill) tuples). This structure
                            determines how the AxisItem decides how many ticks
                            should have text appear next to them. Each tuple in
                            the list specifies what fraction of the axis length
                            may be occupied by text, given the number of ticks
                            that already have text displayed. For example::
  
                                [(0, 0.8), # Never fill more than 80% of the axis
                                 (2, 0.6), # If we already have 2 ticks with text,
                                           # fill no more than 60% of the axis
                                 (4, 0.4), # If we already have 4 ticks with text,
                                           # fill no more than 40% of the axis
                                 (6, 0.2)] # If we already have 6 ticks with text,
                                           # fill no more than 20% of the axis
  
      showValues            (bool) indicates whether text is displayed adjacent
                            to ticks.
      tickAlpha             (float or int or None) If None, pyqtgraph will draw the
                            ticks with the alpha it deems appropriate.  Otherwise,
                            the alpha will be fixed at the value passed.  With int,
                            accepted values are [0..255].  With value of type
                            float, accepted values are from [0..1].
      ===================== =======================================================
  
      Added in version 0.9.9
      """
      for kwd, value in kwds.items():
          if kwd not in self.style:
              raise NameError("%s is not a valid style argument." % kwd)
  
          if kwd in (
              "tickLength",
              "tickTextOffset",
              "tickTextWidth",
              "tickTextHeight",
          ):
              if not isinstance(value, int):
                  raise ValueError("Argument '%s' must be int" % kwd)
  
          if kwd == "tickTextOffset":
              if self.orientation in ("left", "right"):
                  self.style["tickTextOffset"][0] = value
              else:
                  self.style["tickTextOffset"][1] = value
          elif kwd == "stopAxisAtTick":
              try:
                  assert (
                      len(value) == 2
                      and isinstance(value[0], bool)
                      and isinstance(value[1], bool)
                  )
              except:
                  raise ValueError(
                      "Argument 'stopAxisAtTick' must have type (bool, bool)"
                  )
              self.style[kwd] = value
          else:
              self.style[kwd] = value
  
      self.picture = None
      self._adjustSize()
      self.update()
  
imports: import weakref
  from math import ceil, floor, isfinite, log10, sqrt, frexp, floor
  import numpy
  from ..None import debug
  from ..None import functions
  from ..None import getConfigOption
  from ..Point import Point
  from ..Qt import QtCore, QtGui, QtWidgets
  from .GraphicsWidget import GraphicsWidget
label_desc: Use image node_id 2 for calling the AxisItem obj's underlying member method code with example usage: obj.setStyle() without return types