You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to be able to plot data by dates (datetime instances) on X axis, like in matplotlib. Useful for plotting some logs, for example. Something like this:
import datetime
base = datetime.date.today()
date_list = [base - datetime.timedelta(days=x) for x in range(0, 5)]
points_x = date_list
points_y = [2, 3, 3, 2, 1]
plot = MeshLinePlot(color=[1, 1, 0])
plot.points = zip(points_x, points_y)
graph.add_plot(plot)
The text was updated successfully, but these errors were encountered:
meequz
changed the title
Datetime support
Feature Request: Datetime support
Apr 18, 2015
@caaarlos Hi. No, I'm not. I had also wanted to rotate the date X ticks, because they can be long, but I hadn't found this feature too. So I had decided to start from it, and implemented it: #41. But no feedback received since. It seems kivy developers are not interested in developing this widget at all.
It would be nice to be able to plot data by dates (datetime instances) on X axis, like in matplotlib. Useful for plotting some logs, for example. Something like this:
import datetime
base = datetime.date.today()
date_list = [base - datetime.timedelta(days=x) for x in range(0, 5)]
points_x = date_list
points_y = [2, 3, 3, 2, 1]
plot = MeshLinePlot(color=[1, 1, 0])
plot.points = zip(points_x, points_y)
graph.add_plot(plot)
The text was updated successfully, but these errors were encountered: