@@ -152,7 +152,7 @@ function gplot(g::AbstractGraph{T},
152
152
edgelabelsize *= (max_edgelabelsize / maximum (edgelabelsize))
153
153
nodelabelsize *= (max_nodelabelsize / maximum (nodelabelsize))
154
154
max_nodestrokelw = maximum (nodestrokelw)
155
- if max_nodestrokelw > 0.0
155
+ if ! iszero ( max_nodestrokelw)
156
156
nodestrokelw *= (max_edgelinewidth / max_nodestrokelw)
157
157
end
158
158
@@ -207,13 +207,14 @@ function gplot(g::AbstractGraph{T},
207
207
end
208
208
end
209
209
210
+ # build plot
210
211
compose (context (units= UnitBox (- 1.2 , - 1.2 , + 2.4 , + 2.4 )),
211
212
compose (context (), rectangle (- 1.2 , - 1.2 , + 2.4 , + 2.4 ), fill (backgroundc)),
212
- compose (context (), texts, fill (nodelabelc), stroke ( nothing ), fontsize (nodelabelsize)),
213
+ compose (context (), texts, fill (nodelabelc), fontsize (nodelabelsize)),
213
214
compose (context (), nodes, fill (nodefillc), stroke (nodestrokec), linewidth (nodestrokelw)),
214
- compose (context (), edgetexts, fill (edgelabelc), stroke ( nothing ), fontsize (edgelabelsize)),
215
+ compose (context (), edgetexts, fill (edgelabelc), fontsize (edgelabelsize)),
215
216
compose (context (), arrows, stroke (edgestrokec), linewidth (edgelinewidth)),
216
- compose (context (), lines, stroke (edgestrokec), fill ( nothing ), linewidth (edgelinewidth)))
217
+ compose (context (), lines, stroke (edgestrokec), linewidth (edgelinewidth)))
217
218
end
218
219
219
220
function gplot (g; layout:: Function = spring_layout, keyargs... )
0 commit comments