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

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

sql - TSQL XML Parsing / Insert -

c# - Why won't my code write to SQL? -