has2k1 / plotnine

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

date axis labels ugly and different functionality than ggplot (R) #258

Open aamster opened 5 years ago

aamster commented 5 years ago

Sorry if this has already been brought up, but default behavior for date axis labels is unacceptable to me, and is not handled the same way as in the R ggplot2. Please see the comparison. screen shot 2019-02-02 at 8 04 22 pm screen shot 2019-02-02 at 8 05 32 pm

jbechtel commented 4 years ago

I think this is easily remedied with + plotnine.scale_x_datetime(date_breaks="1 year", date_labels="%Y",name="date")