Skip to content

Commit

Permalink
update visualize_fronts
Browse files Browse the repository at this point in the history
  • Loading branch information
ngocbh committed Oct 24, 2020
1 parent 1176a08 commit 7bdb0dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geneticpython/tools/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def visualize_fronts(pareto_dict: Dict[str, Union[Pareto, SimplePareto]] = {},
pareto_dict[name], key=lambda solution: tuple(solution))
fig, ax = plt.subplots()
legends = []
marker = marker or ('+', 'o', '*', '^', '.', ',')
marker = marker or ('o', '+', '*', '^', '.', ',')
iter_marker = itertools.cycle(marker)

if fillstyle == 'flicker':
Expand All @@ -78,7 +78,7 @@ def visualize_fronts(pareto_dict: Dict[str, Union[Pareto, SimplePareto]] = {},
obj2 = [solution[1] for solution in pareto]
m = next(iter_marker)
fs = next(iter_fillstyle)
# ax.scatter(obj1, obj2, marker=m, s=s)
ax.scatter(obj1, obj2, marker=m, s=s)
if plot_line:
ax.plot(obj1, obj2,
linewidth=linewidth,
Expand Down

0 comments on commit 7bdb0dc

Please sign in to comment.