has2k1 / plotnine

A Grammar of Graphics for Python
https://plotnine.org
MIT License
3.89k stars 209 forks source link

Change color of only one x axis label - plotnine #787

Closed pyvid closed 1 month ago

pyvid commented 1 month ago

Is there a way to only change the color of one specific x/y axis label with the use of plotnine only? I only get as far as colorizing all x or y axis labels in one color.

has2k1 commented 1 month ago

Yes you can. You should pass a list of colors. There should be as many colors as there are labels.

has2k1 commented 1 month ago

Upgrade to the latest version of plotnine.

pyvid commented 1 month ago

Thank you for your help, it worked!