indexer(arr, index_name=None, axis=0)[source]

Utility function for when you want to index an array as part of an interactive function. For example: iplt.plot(indexor(arr), idx = np.arange(5))

  • arr (arraylike) – The array to be indexed

  • index_name (str, default: None) – The name of the variable the returned function should expect to receive. If None then the function will check for idx, index, ind, and indx.

  • axis (int) – which axis to index, default to first axis


f (function) – Function to be passed as an argument to an interactive plotting function