Skip to content

Commit f4f375f

Browse files
committed
Revert "bug fix"
Remove commits that are in separate PRs This reverts commit d4a2ae4ba42a701ebe49865d2addf212c54f7bd7.
1 parent 40e21be commit f4f375f

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

src/plot.jl

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ Angle offset for the node labels (only used when `nodelabeldist` is not zero). D
4444
<<<<<<< HEAD
4545
`max_nodelabelsize`
4646
Largest fontsize for the vertex labels. Default: `4.0`
47-
=======
48-
`NODELABELSIZE`
49-
Largest fontsize for the vertice labels. Default: `4.0`
50-
>>>>>>> parent of 14d62b4 (Fix #172. set background color (`backgroundc` kwarg):)
5147
5248
`nodelabelsize`
5349
Relative fontsize for the vertice labels, can be a Vector. Default: `1.0`
@@ -124,14 +120,8 @@ function gplot(g::AbstractGraph{T},
124120
nodestrokelw = 0.0,
125121
arrowlengthfrac = is_directed(g) ? 0.1 : 0.0,
126122
arrowangleoffset = π / 9,
127-
<<<<<<< HEAD
128123
linetype = :straight,
129-
outangle = π / 5,
130-
backgroundc = nothing) where {T <:Integer, R1 <: Real, R2 <: Real}
131-
=======
132-
linetype = "straight",
133124
outangle = π / 5) where {T <:Integer, R1 <: Real, R2 <: Real}
134-
>>>>>>> parent of 14d62b4 (Fix #172. set background color (`backgroundc` kwarg):)
135125

136126
@assert length(locs_x_in) == length(locs_y_in) == nv(g) "Position vectors must be of the same length as the number of nodes"
137127
@assert isnothing(nodelabel) || length(nodelabel) == nv(g) "`nodelabel` must either be `nothing` or a vector of the same length as the number of nodes"
@@ -164,20 +154,7 @@ function gplot(g::AbstractGraph{T},
164154
end
165155

166156
# Create nodes
167-
<<<<<<< HEAD
168157
nodecircle = fill(0.4Compose.w, nv(g)) .* nodesize
169-
=======
170-
nodecircle = fill(0.4Compose.w, length(locs_x))
171-
if isa(nodesize, Real)
172-
for i = 1:length(locs_x)
173-
nodecircle[i] *= nodesize
174-
end
175-
else
176-
for i = 1:length(locs_x)
177-
nodecircle[i] *= nodesize[i]
178-
end
179-
end
180-
>>>>>>> parent of 14d62b4 (Fix #172. set background color (`backgroundc` kwarg):)
181158
nodes = circle(locs_x, locs_y, nodecircle)
182159

183160
# Create node labels if provided
@@ -227,15 +204,9 @@ function gplot(g::AbstractGraph{T},
227204
end
228205
end
229206

230-
<<<<<<< HEAD
231207
#build plot
232208
compose(context(units=UnitBox(-1.2, -1.2, +2.4, +2.4)),
233-
compose(context(), rectangle(-1.2, -1.2, +2.4, +2.4), fill(backgroundc)),
234209
compose(context(), texts, fill(nodelabelc), fontsize(nodelabelsize)),
235-
=======
236-
compose(context(units=UnitBox(-1.2, -1.2, +2.4, +2.4)),
237-
compose(context(), texts, fill(nodelabelc), stroke(nothing), fontsize(nodelabelsize)),
238-
>>>>>>> parent of 14d62b4 (Fix #172. set background color (`backgroundc` kwarg):)
239210
compose(context(), nodes, fill(nodefillc), stroke(nodestrokec), linewidth(nodestrokelw)),
240211
compose(context(), edgetexts, fill(edgelabelc), fontsize(edgelabelsize)),
241212
compose(context(), arrows, stroke(edgestrokec), linewidth(edgelinewidth)),

0 commit comments

Comments
 (0)