Creating an overview plot of another one using to_image()

Hi @luggie,

as I am trying to get better in JS, I created a possible solution for your answer using clientside callbacks. I’m sure there is room for improvement but it does the job. It even moves the annotation if the user moves the original figure (pan).

One known issue is that if the user decides to pan in the overwie figure, something gets mixed up and the size of the annotation is not correct anymore.

zoom

You can find the code here:

mred cscb

2 Likes