Skip to content

Commit f44fd7b

Browse files
committed
fix bug on edgelabels
1 parent 788cc5e commit f44fd7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plot.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ function gplot(g::AbstractGraph{T},
226226
# Create edge labels if provided
227227
edgetexts = nothing
228228
if !isempty(edgelabel)
229-
edge_locs_x = zeros(R, NE)
230-
edge_locs_y = zeros(R, NE)
229+
edge_locs_x = zeros(R1, NE)
230+
edge_locs_y = zeros(R2, NE)
231231
for (e_idx, e) in enumerate(edges(g))
232232
i = src(e)
233233
j = dst(e)

0 commit comments

Comments
 (0)