Is there a cookbook or reference that is about using matplotlib for data analysis? I will be using it to plot a waveform from the data samples. Then have some several clickable options/ tools so that some data manipulation can occur ( e.g. averaging, placing a threshold line in the plot where the threshold levels can be change dynamically in the plot).