class_docstr: An Axis class for the 3D plots.
code: def get_tightbbox(self, renderer=None, *, for_layout_only=False):
      # docstring inherited
      if not self.get_visible():
          return
      # We have to directly access the internal data structures
      # (and hope they are up to date) because at draw time we
      # shift the ticks and their labels around in (x, y) space
      # based on the projection, the current view port, and their
      # position in 3D space. If we extend the transforms framework
      # into 3D we would not need to do this different book keeping
      # than we do in the normal axis
      major_locs = self.get_majorticklocs()
      minor_locs = self.get_minorticklocs()
  
      ticks = [
          *self.get_minor_ticks(len(minor_locs)),
          *self.get_major_ticks(len(major_locs)),
      ]
      view_low, view_high = self.get_view_interval()
      if view_low > view_high:
          view_low, view_high = view_high, view_low
      interval_t = self.get_transform().transform([view_low, view_high])
  
      ticks_to_draw = []
      for tick in ticks:
          try:
              loc_t = self.get_transform().transform(tick.get_loc())
          except AssertionError:
              # Transform.transform doesn't allow masked values but
              # some scales might make them, so we need this try/except.
              pass
          else:
              if mtransforms._interval_contains_close(
                  interval_t, loc_t
              ):
                  ticks_to_draw.append(tick)
  
      ticks = ticks_to_draw
  
      bb_1, bb_2 = self._get_ticklabel_bboxes(ticks, renderer)
      other = []
  
      if self.line.get_visible():
          other.append(self.line.get_window_extent(renderer))
      if (
          self.label.get_visible()
          and not for_layout_only
          and self.label.get_text()
      ):
          other.append(self.label.get_window_extent(renderer))
  
      return mtransforms.Bbox.union([*bb_1, *bb_2, *other])
  
imports: import inspect
  import numpy
  import matplotlib
  from matplotlib import _api, artist, lines, axis, patches, transforms, colors
  from .None import art3d, proj3d
label_desc: Use image node_id 27 for calling the Axis obj's underlying member method code with example usage: obj.get_tightbbox(renderer) and returns: mtransforms