code: def xunit(self):
          
          try:
              return self._dx.unit
          except AttributeError:
              try:
                  return self._x0.unit
              except AttributeError:
                  return self._default_xunit
docs: Unit of x-axis index
  
          :type: `~astropy.units.Unit`