Plot Labelling

When you set label = [names(country_list)] in your loop you get the full list of names back. You only want the name of one column, which you can’t extract from the column itself if you iterate over eachcol, as that only returns the coluns itself without the name.

You could iterate over for (name, col) in zip(names(country_list), eachcol(country_list)) and then use label = name

1 Like