File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 783783
784784function _expand_args (args:: Union{AbstractVector, AbstractDict} , ranges)
785785 N_paths = length (ranges)
786- N_points = ranges[end ][end ]
786+ N_points = N_paths > 0 ? ranges[end ][end ] : 0
787787 allstraight = N_paths* 3 == N_points
788788 if args isa AbstractVector && length (args) != N_paths
789789 throw (ArgumentError (" The length of the args vector $args does not match the number of edges!" ))
Original file line number Diff line number Diff line change 278278 @test ax isa LScene
279279end
280280
281- @testset " test empty endge Blot " begin
281+ @testset " test empty edge plot " begin
282282 GraphMakie. edgeplot (GraphMakie. Line{Point{2 , Float32}}[])
283283 GraphMakie. edgeplot (GraphMakie. AbstractPath{Point{2 , Float32}}[])
284+
285+ # test empty edge color
286+ graphplot (SimpleGraph (2 ); edge_color= Symbol[])
284287end
285288
286289include (" referencetests.jl" )
You can’t perform that action at this time.
0 commit comments