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.
code: def _updateMaxTextSize(self, x):
      ## Informs that the maximum tick size orthogonal to the axis has
      ## changed; we use this to decide whether the item needs to be resized
      ## to accomodate.
      if self.orientation in ["left", "right"]:
          if self.style["autoReduceTextSpace"]:
              if x > self.textWidth or x < self.textWidth - 10:
                  self.textWidth = x
          else:
              mx = max(self.textWidth, x)
              if mx > self.textWidth or mx < self.textWidth - 10:
                  self.textWidth = mx
          if self.style["autoExpandTextSpace"]:
              self._updateWidth()
  
      else:
          if self.style["autoReduceTextSpace"]:
              if x > self.textHeight or x < self.textHeight - 10:
                  self.textHeight = x
          else:
              mx = max(self.textHeight, x)
              if mx > self.textHeight or mx < self.textHeight - 10:
                  self.textHeight = mx
          if self.style["autoExpandTextSpace"]:
              self._updateHeight()
  
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 12 for calling the AxisItem obj's underlying member method code with example usage: obj._updateMaxTextSize(x) without return types