Replies: 16 comments
-
Hey, welcome back! :) Gtk integration is possible, but Gtk segfaulted on my, and there is no OpenGL support on OSX. |
Beta Was this translation helpful? Give feedback.
-
No problem, no need to clutter docs or readme files with this imo 😉
The lack of OpenGL support in OSX is a shame, but I can personnaly can live without it. Wich UI toolkit do your recommand for use with Makie ? Maybe Qt5 through QML.jl ? |
Beta Was this translation helpful? Give feedback.
-
MakieLayout, I guess :D |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Yeah, and there is still a bug in the opengl text rendering... In theory, it should look much nicer :D |
Beta Was this translation helpful? Give feedback.
-
There is also: https://github.com/Gnimuc/CImGui.jl which works much better with opengl! |
Beta Was this translation helpful? Give feedback.
-
Any clue about how I can hook CImGui into the GL context Makie creates ? I gave it a try and it sounds really unfamilliar to me. |
Beta Was this translation helpful? Give feedback.
-
Maybe this code, which uses CairoMakie, can be adapted to use GtkGLArea. |
Beta Was this translation helpful? Give feedback.
-
Any idea what kinds of adaptations this needs? Or what the status of GLMakie-in-Gtk is? |
Beta Was this translation helpful? Give feedback.
-
https://github.com/jwahlstrand/GtkMakie.jl from @jwahlstrand seems to be at a point where one should be able to at least prototype GUIs with GLMakie + Gtk pretty well ;) |
Beta Was this translation helpful? Give feedback.
-
Thanks for the pointer! I'll see how far along I can prototype before I cut myself on a sharp edge. 😂 The open PR and issue suggest to me that the ride might be rough. |
Beta Was this translation helpful? Give feedback.
-
Seat belts might be a good idea. GtkMakie currently just creates a window with a single Makie widget, just like the GLFW-based backend. I've tried some examples of interactive Makie graphics, including sliders, menus, etc., and they seem to work. A Makie widget that you can place alongside other widgets is my goal, and it seems like it should be possible, but it's not working yet. It segfaults very consistently in the GLMakie rendering code -- maybe some sort of OpenGL issue with the GTK4 library, but more likely a mistake I'm making. I just added a GtkGrid between the GtkGLArea for Makie and the GtkWindow so that other widgets can at least be placed next to it. This seems to work. BTW this uses Gtk4.jl, not Gtk.jl, so your Gtk code may have to be modified a bit. |
Beta Was this translation helpful? Give feedback.
-
Update: I was able to assemble something, and can display and interact with plots. 🥳 Sometimes there are very weird long delays until newly added plots show up (not all), and various I'm plotting out of an HDF5 file, and using plain GLMakie in the REPL works quickly (plot all traces in ~1s). |
Beta Was this translation helpful? Give feedback.
-
For me it doesn't rerender until the cursor is over the plot. If I replace
it seems to work reliably. That's pretty ugly so I'll work on making this happen automatically when the figure changes -- I need to learn more about GLMakie internals. |
Beta Was this translation helpful? Give feedback.
-
Ha, I did not realise that that is what's been going on -- indeed, that seems to be the source of the delays. |
Beta Was this translation helpful? Give feedback.
-
See also #568 |
Beta Was this translation helpful? Give feedback.
-
Is it possible to embed Makie in a GTK application, for exemple using a
GtkGLArea
widget as OpenGL context for GLMakie ?#568 discuss this for the Cairo backend.
(btw, coming back to the Makie ecosystem after a year or so, and I'm amazed by its progress! Maybe you remember me, Simon, I'm the one who made the logo ;-) )
Beta Was this translation helpful? Give feedback.
All reactions