Zoom inset matplotlib with graphic instead of image

I’m currently writing 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: Zoom region inset axes — Matplotlib 3.6.0 documentation 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.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.