dexplo / bar_chart_race

Create animated bar chart races in Python with matplotlib
MIT License
1.35k stars 351 forks source link

Set y label background color for some condition is true #72

Open mikezang opened 1 year ago

mikezang commented 1 year ago

I want to set y lable background color when condition is true, I did it when I plot bar chart by code as below:

for tick in ax.get_yticklabels(): if tick.get_text() in constants.greyLabels: tick.set_backgroundcolor('lightgrey')

Can I do it in bar_chart_race? LableBackgroundColor