-
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 new plots to a figure in MakieWidget #14
Comments
You're right, that's totally broken! I have been using Observable inputs to create dynamic plots, but that only lets you do so much. Changing the figure in the widget should be possible too. I'll fix it ASAP. |
Thank you for the quick reply! I was hoping that I was doing something wrong, since I'm quite new at Julia and Gtk4. But in this case I'll wait for the fix. |
I finally have a potential fix for this. Adding a call to
I think the issue is that when you call (at least some) functions that modify Makie plots, Makie expects to have a GL context. In GLMakie that happens automatically but here we have to make the widget's context current. I modified the "widgets.jl" example. |
I'm going to close this since |
Hello! I was experimenting with the library and wanted to replicate the examples/interactive.jl (adding new random plots to the figure) but for the case where I want to use the MakieWidget.
I am able to empty the figure and to change xlims! and ylims! by pressing a button, but, for some reason, it is not possible to add a new plot to it.
Here you can see the example I was trying to run:
The text was updated successfully, but these errors were encountered: