has2k1 / mizani

A scales package for python
https://mizani.readthedocs.io
BSD 3-Clause "New" or "Revised" License
49 stars 14 forks source link

support seconds in date_breaks #12

Closed friedhelmvictor closed 5 years ago

friedhelmvictor commented 5 years ago

date_breaks does not support seconds: https://mizani.readthedocs.io/en/stable/breaks.html#mizani.breaks.date_breaks says

width ... Must be one of [minute, hour, day, week, month, year]

I guess this could be solved by including SecondLocator from matplotlib.dates Maybe it would also make sense to add the MicrosecondLocator

has2k1 commented 5 years ago

@datagiraffe, you are right. I do not know why I did not include them in the first place.