File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ function Makie.plot!(gp::GraphPlot)
216216 if length (layout) != nv (graph)
217217 throw (ArgumentError (" The length of the layout vector does not match the number of nodes in the graph!" ))
218218 else
219- Pointf .(layout)
219+ to_pointf32 .(layout)
220220 end
221221 else
222222 [to_pointf32 (p) for p in layout (graph)]
Original file line number Diff line number Diff line change 189189 @test get_elabel_plot (p)[:text ][] == elabels
190190end
191191
192- @testset " test Pointf " begin
193- using GraphMakie: Pointf
192+ @testset " test to_pointf32 " begin
193+ using GraphMakie: to_pointf32
194194
195195 p = Point (0.0 , 0.0 )
196196 @test typeof (to_pointf32 (p)) == Point2f
226226 pos3 = [SA[0 ,0 ],
227227 SA[1 ,1 ],
228228 SA[0 ,1 ]]
229- @test isconcretetype (typeof (Pointf .(pos1)))
230- @test isconcretetype (typeof (Pointf .(pos2)))
231- @test isconcretetype (typeof (Pointf .(pos3)))
229+ @test isconcretetype (typeof (to_pointf32 .(pos1)))
230+ @test isconcretetype (typeof (to_pointf32 .(pos2)))
231+ @test isconcretetype (typeof (to_pointf32 .(pos3)))
232232 graphplot (g; layout= (x)-> pos1)
233233 graphplot (g; layout= (x)-> pos2)
234234 graphplot (g; layout= (x)-> pos3)
You can’t perform that action at this time.
0 commit comments