out3Plot.outAna1Plots.last_nonzero

last_nonzero(arr, axis, invalid_val=-1)[source]

Get index of last non zero value

Parameters
  • arr (numpy array) – data array

  • axis (int) – axis along which you want to get the index

Return type

index of last non zero in axis direction