lstein.lstein.LSteinPanel.apply_axis_limits

LSteinPanel.apply_axis_limits(x: ndarray, y: ndarray, **kwargs) Tuple[ndarray, ndarray, Dict][source]

returns x, y and **kwargs after application of axis limits

  • method enforce axis limits onto the dataseries
    • only applies out-of-bounds cuts

    • removes any datapoints that are out of bounds in x- or y-direction

Parameters
  • x
    • np.ndarray

    • x-values of the series to be plotted

    • will serve as reference for enforcing self.LSC.xlims_plot

  • y
    • np.ndarray

    • y-values of the series to be plotted

    • will serve as reference for enforcing self.ylims_data

  • **kwargs
    • kwargs ultimately used when plotting y vs x

    • also get modified accordingly i.e.,
      • “c” needs to be set to same size as x_cut and y_cut

      • “s” needs to be set to same size as x_cut and y_cut

      • “alpha” needs to be set to same size as x_cut and y_cut

Raises

Returns
  • x_cut
    • np.ndarray

    • x after applying axis-limit cuts

  • y_cut
    • np.ndarray

    • y after applying axis-limit cuts

  • kwargs
    • Dict

    • **kwargs after applying axis-limit cuts