Data Science, Condition Monitoring, Chemical Engineering.
marker='o') smaller_than_threshold = [i for i, val in enumerate(signal) if val<=thresh] ax.plot(smaller_than_threshold, signal[smaller_than_threshold], linestyle='none', color='g', marker='o') plt.show() Example for PDF-plot: import matplotlib.pyplot as plt %matplotlib inline # when using