-
Notifications
You must be signed in to change notification settings - Fork 62
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
node colors not saving to .pdf
#156
Comments
very oddly, I cannot re-create this behavior with the minimal example below! my_graph = SimpleGraph(350)
add_edge!(my_graph, 1, 3)
colorz = [colorant"red" for i = 1:nv(my_graph)]
my_gp = gplot(my_graph, nodefillc=colorz, nodestrokec=colorant"black", nodestrokelw=1)
draw(PDF("toy_graph.pdf", 8cm, 8cm), my_gp) |
mk this is bizarre. the draw(PDF("toy_graph.pdf", 8cm, 8cm), gplot(...)) totally works! it was defining the output of |
I get red nodes in VS Code with the above code. Windows OS. Julia 1.7. However, when run Decreasing the number of nodes to 99 or just using |
@SimonEnsemble @tomtuamnuq From the GraphPlot sourcecode: compose(context(units=UnitBox(-1.2, -1.2, +2.4, +2.4)),
compose(context(), texts, fill(nodelabelc), fontsize(nodelabelsize)),
compose(context(), nodes, fill(nodefillc), stroke(nodestrokec), linewidth(nodestrokelw)),
compose(context(), edgetexts, fill(edgelabelc), fontsize(edgelabelsize)),
compose(context(), arrows, stroke(edgestrokec), linewidth(edgelinewidth)),
compose(context(), lines, stroke(edgestrokec), linewidth(edgelinewidth))) If However, this is only an issue for large graphs and will hopefully get fixed in a future release of Compose.jl |
oddly the node colors are not saving when I save to
.pdf
.after
what Pluto.jl displays:
after
what the
.pdf
looks like:The text was updated successfully, but these errors were encountered: