out3Plot.outAna1Plots.first_nonzero

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

Get index of first non zero value

Parameters
  • arr (numpy array) – data array

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

Return type

index of first non zero in axis direction