MCPcopy Create free account
hub / github.com/PyVRP/PyVRP / test_plot_solution

Function test_plot_solution

tests/plotting/test_plotting.py:23–31  ·  view source on GitHub ↗

Compares plots generated by ``plot_solution``.

()

Source from the content-addressed store, hash-verified

21
22@img_comp(["plot_solution", "plot_solution_with_customers"], **IMG_KWARGS)
23def test_plot_solution():
24 """
25 Compares plots generated by ``plot_solution``.
26 """
27 data = read("data/RC208.vrp", round_func="trunc")
28 sol = read_solution("data/RC208.sol", data)
29
30 plotting.plot_solution(sol, data)
31 plotting.plot_solution(sol, data, plot_clients=True)
32
33
34@img_comp(["plot_solution_multiple_depots"], **IMG_KWARGS)

Callers

nothing calls this directly

Calls 2

readFunction · 0.90
read_solutionFunction · 0.90

Tested by

no test coverage detected