-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add periodically data update example for jvm-swing-javafx #2
Comments
Ho @fmvin , this must be some trick with offscreen drawing of kind. Perhaps CardLayout can help. |
@alshan, Thanks a lot for clarification. There is no problem with creating new plot objects except an annoying chart blinking after each data update. Hope your proposal will be helpful. |
BTW, just setting the color of the backing panel in your app to the same value as the color of the plot background can reduce blinking. |
Trick with CardLayout works exactly as I expected. On first data update I show first card and push a new chart to the second card. On next data update I show second card and push new chart to the first card. And so on. |
Wow, glad to hear! |
I dont think this is a solution. It's just a naive trick with obvious limitations. Much better if native support of dynamic chart update will be added to Lets-Plot lib or to kotlin wrapper. |
Please create an example for demonstrating plotting in realtime. For example math or rand function updates each second.
jvm-swing-javafx
example is much preferable.The text was updated successfully, but these errors were encountered: