GraphRecipes.jl icon indicating copy to clipboard operation
GraphRecipes.jl copied to clipboard

Small dots inside nodes

Open diegozea opened this issue 3 years ago • 2 comments

There is a tiny dot inside the nodes when using the plotly backend; it doesn't appear with GR. It is possible to see when the node fill color is white.

dot

Example using Plots 1.25.11 and GraphRecipes 0.5.9:

using Graphs, Plots, GraphRecipes
graph = smallgraph(:karate)
plotly()
graphplot(graph, nodecolor=:white)
gr()
graphplot(graph, nodecolor=:white)

diegozea avatar Feb 23 '22 23:02 diegozea

Ok, this is also happening with GR:

image

using Graphs, Plots, GraphRecipes
graph = smallgraph(:karate)
begin
	node_labels = fill("      ", nv(graph))
	node_labels[1] =   "Mr. Hi"
	node_labels[34] =  "John A"
end
gr()
graphplot(graph, names=node_labels, nodesize=0.5)

diegozea avatar Feb 24 '22 17:02 diegozea

@diegozea From https://github.com/JuliaPlots/GraphRecipes.jl/issues/154 , https://github.com/JuliaPlots/GraphRecipes.jl/issues/154#issuecomment-1081248382 :

I noticed that setting markerstrokewidth=0 eliminates the dot, so I think it's an issue with the stroke.

eugene-shvarts avatar Jun 09 '22 00:06 eugene-shvarts