-for label, color in [ ('World', 'blue'),
- ('Switzerland', 'red'),
- ('France', 'green'),
- ('South Korea', 'gray'),
- ('Mainland China', 'orange') ]:
- ax.plot(dates, nb_cases[label], color = color, label = label)
+for key, color, label in [
+ ('World', 'blue', 'World'),
+ ('Switzerland', 'red', 'Switzerland'),
+ ('France', 'lightgreen', 'France'),
+ ('US', 'black', 'USA'),
+ ('Korea, South', 'gray', 'South Korea'),
+ ('Italy', 'purple', 'Italy'),
+ ('China', 'orange', 'China')
+]:
+ ax.plot(dates, nb_cases[key],
+ color = color, label = label, linewidth = 2)