How do I format the x-axis on Python Ggplot? -
i need format dates on x-axis ggplot python bar chart.
how can it?
use scale_x_date() format dates on x-axis.
p = ggplot(aes(x='date'), data) + geom_bar() + scale_x_date(labels='%m-%y')
this gives number of month , year, example, 01-1990 can try other formats.
Comments
Post a Comment