Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot disappearing after replot #70

Closed
carlonluca opened this issue Jan 4, 2022 · 3 comments
Closed

Plot disappearing after replot #70

carlonluca opened this issue Jan 4, 2022 · 3 comments

Comments

@carlonluca
Copy link

Hello,
I noticed that, when creating a Figure with two plots (2 rows, 1 colum), the first cell (index 0) seems to disappear during a replot.
It is sufficient to trigger a replot either with the proper button or by resizing the window and the plot in the first cell disappears.

I tried to plot with the same exact code both in cell 0 and cell 1, and I can reproduce the issue: cell 0 disappears on the first replot, while the second is properly replotted.

Is this only happening to me? Any idea what may be wrong?
Thanks!

@carlonluca carlonluca changed the title Plot disappearing after resize Plot disappearing after replot Jan 4, 2022
@SiegeLord
Copy link
Owner

On the surface, this is a limitation of gnuplot, e.g. see https://sourceforge.net/p/gnuplot/feature-requests/505/. But perhaps we can do something about on Rust's side of things, since, after all, we do store all the state necessary to redraw the plots. The main question will be to somehow route the resize or replot button event back to Rust so we can redraw things.

@carlonluca
Copy link
Author

I have to say I wrote here because I could not reproduce this with Octave. Then, I found out Octave uses gnuplot only if instructed to do so, and in that case I could reproduce the same issue. So, I guess this should probably be solved in gnuplot, shouldn't it?

@SiegeLord
Copy link
Owner

As of 0.0.40, we switched to using temporary files to pass data to gnuplot, which bypasses this limitation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants