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

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

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

The canvas has been tainted by cross-origin data in chrome only -