I'm currently writing a tool for handling MF4 files and plotting signals. I use asammdf for opening .mf4 files and getting info about the signals in them. I want to make a functionality that zooms in on a graphic whenever the signal reaches a certain value, exactly like in the link below: https://matplotlib.org/stable/gallery/subplots_axes_and_figures/zoom_inset_axes.html but this I want to apply for my graphics. The signals I read from the file are each a structure that has a np.array of timestamps (x axis) and a np.array of samples (values that the signal reach). My question is how can I put the graphic instead of the demo_image in that code? I can't really understand what each of the lines of code do in that example. Please help.
Asked
Active
Viewed 48 times