pyoculus.utils.plot.clean_bigsteps

pyoculus.utils.plot.clean_bigsteps(array, threshold=0.1)

place nans where the difference between two consecutive values is greater than a threshold

Useful for removing modulo-boundary crossing lines, that are very long