In matplot, how to set the color in this case?

Hi @BobKim,

Could you not edit this line to zip over your list of [‘grey’, ‘black’, ‘blue’, ‘limegreen’] as well?

So, something like,

colors = [‘grey’, ‘black’, ‘blue’, ‘limegreen’]
self.lines = [ax.plot([], [], [], '-', color=color, label=labels, alpha=1.0, lw=2.0)[0]
                  for _, label, color in zip_longest(paths, labels, colors)]
1 Like