Closed xyberian-sg closed 4 years ago
Hi! You can do ax2.decouple()
to drop the zoom/pan link between the two axes. There is currently no support for not moving the crosshairs in all plots at once. What is the reason you do not want the other crosshair to move?
@xyberian-sg What is the reason you do not want the other crosshair to move?
Thanks for the suggestion, now I can zoom/pan the 2 plots independently. My reason for not wanting the other crosshair to move is that sometimes I need to have 2 plots showing different date ranges side by side, but it's ok now since I can zoom/pan them independently.
Regarding point #3, could you please take a look at the code below, and let me know if I made any mistakes? And how can I set the foreground and background colors for both plots? I tried but only the 1st plot would take on the colors specified.
See https://github.com/highfestiva/finplot/issues/25
Every other row uses odd row color to easily distinguish them.
Ah, missed what question you were asking about, sorry! Fixed in https://github.com/highfestiva/finplot/commit/b9a52cc096491a0f633e281f90981fd8498a3e2e -- the overlay was ending up behind the viewbox of the odd one (with odd color set).
In my last fix https://github.com/highfestiva/finplot/commit/5bb833277e70357349db3a61366a9ff306d1e55c I came up with a much better resolution for your overlay problem. I tried it with your above code, and that seems to work. Lemmeno if you are experiencing other issues with this.
Yes, it does work. Thanks a lot!
Hi, I have modified the code from example-embed.py as the following:
The idea is to see if possible to have 2 independent plots embedded in a single QApplication. It works mostly, but I've noticed a few things:
Thanks in advance for your advice!