Skip to content

Commit bed84d9

Browse files
simonschoellysbromberger
authored andcommitted
fix for function gplot (#63)
1 parent 5a0fba0 commit bed84d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plot.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Equal to 0 for undirected graphs. Default: `0.1` for the directed graphs
8585
Optional. Angular width in radians for the arrows. Default: `π/9 (20 degrees)`
8686
8787
"""
88-
function gplot{T<:Real}(G,
88+
function gplot(G,
8989
locs_x_in::Vector{T}, locs_y_in::Vector{T};
9090
nodelabel = nothing,
9191
nodelabelc = colorant"black",
@@ -110,7 +110,7 @@ function gplot{T<:Real}(G,
110110
arrowlengthfrac = _is_directed(G) ? 0.1 : 0.0,
111111
arrowangleoffset = π/9.0,
112112
linetype = "straight",
113-
outangle = pi/5)
113+
outangle = pi/5) where {T <: Real}
114114

115115
length(locs_x_in) != length(locs_y_in) && error("Vectors must be same length")
116116
const N = _nv(G)

0 commit comments

Comments
 (0)