Dear Julia Community,
I am encountering an issue while trying to visualize a simple graph using the GraphPlot
package (v0.6.1) in Julia (v1.11.4) on a 64-bit Windows operating system. My goal is to use the gksqt
graphics backend.
-
I have followed these steps in my code:
using Graphs
using GraphPlot
using Plots
using GR_jll
using Compose -
Selecting gksqt
gksqt() -
Generating a simple graph for testing:
g_simple = SimpleDiGraph(2)
add_edge!(g_simple, 1, 2)
labels_simple = [“A”, “B”] -
Drawing the graph using GraphPlot.gplot()
drawing = GraphPlot.gplot(g_simple, nodelabel = labels_simple) -
Attempting to display using display()
display(drawing) -
Additional context about my environment:
Operating System: Windows (x86_64-w64-mingw32)
Julia Version: 1.11.4 (2025-03-10)
Package Versions (obtained with Pkg.status()
(Note: I have included the full output of Pkg.status() to provide a complete overview of my environment.)
Previously, the GKS QtTerm window did open and function correctly when I executed an extensive decision-making code that also utilized the gksqt backend. This indicates that the backend itself is functional on my system.
My specific question is: What is the correct method to render a Compose.Context object generated by GraphPlot.gplot() so that it is visualized in the GKS QtTerm backend window on my Windows system? Is there an additional function I need to call or any specific configuration I should be aware of to achieve this?
Any help or suggestions would be greatly appreciated.
Thank you in advance for your time and expertise.
Sincerely,
ChaucAPA