code: def _extended_discrete_xaxis(x_axis, n_points=100, eps=0.10):
      """Takes `x_axis` and returns an uniformly sampled array of values from
      its minimum to its maximum with few extra points
  
      Parameters
      ----------
      x_axis : `np.ndarray`
          Original x axis
  
      n_points : `int`, default=100
          The number of points in the sample
  
      eps : `float`, default=0.05
          Number of extra points in percentage
  
      Returns
      -------
      sample : `np.ndarray`
          The extended axis sample
      """
      min_value = np.min(x_axis)
      max_value = np.max(x_axis)
      distance = max_value - min_value
      return np.linspace(
          min_value - eps * distance,
          max_value + eps * distance,
          num=n_points,
      )
  
imports: import numpy
  import matplotlib.pyplot
  from tick.base import TimeFunction
label_desc: Use image node_id 1 for calling a global function with example usage: _extended_discrete_xaxis(x_axis, n_points, eps) and returns: np