Closed brijow closed 3 years ago
Just to follow up here with a similar issue since I believe it is related:
In tmux if you change panes or resize or scroll, the plots disappear. However recalling plt.show() brings them back in that case (assuming they successfully were drawn the first time).
This has to do with TMUX window behaviour. Don't blame them though, drawing images in the terminal doesn't really fall within classic terminal behaviour so it's really hard to plan for it when you are doing a complicated window layout. Unfortunately, I don't think I can fix this with my code.
In the README, the sample test subplots work fine in my usual terminal, but do not work in a tmux window.
However, when I plot a single subplot at a time, they do work.
This script is what I am referring to (from the README). Running the whole thing shows nothing. Calling plt.show() before drawing on the second subplot will correctly display first subplot. If I then draw second subplot and call plt.show() again, now the second shows but first disappears. When running the full script, neither show up, (in TMUX only seeing this issue).