code: def _colorbar_format(minval, maxval):
      
      if not (np.isfinite(minval) and np.isfinite(maxval)):
          return str(maxval)
      else:
          return '%.{}f'.format(_digits(minval, maxval))
docs: Return the format string for the colorbar.