I have an horizontal barchart in which I am setting the labels with the command:
ax.set_yticklabels(df_chart.country_group)
I need some of the labels to be bold (and if possible aligned center-ly) depending on some name of the label.
I have tried with:
ax.set_yticklabels(df_chart.country_group, weight=["bold", "bold", "normal"...])
but the function does not accept a list. I have tries also with a loop:
for label in ax.get_yticklabels():
if label in ["World", "Developing countries", "Developed countries"]:
label.set_fontproperties(weight="bold")
but I was not able to extract the label value from the Text object.
