Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Datetime support #2

Open
meequz opened this issue Jan 8, 2015 · 3 comments
Open

Feature Request: Datetime support #2

meequz opened this issue Jan 8, 2015 · 3 comments

Comments

@meequz
Copy link

meequz commented Jan 8, 2015

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)

@meequz meequz changed the title Datetime support Feature Request: Datetime support Apr 18, 2015
@carlosporta
Copy link

Hi meequz, have you solved your problem? I need a solution for that too.

@meequz
Copy link
Author

meequz commented Nov 17, 2016

@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.

You may also look at https://github.com/kivy-garden/garden.touchgraph

@Chao-Jen
Copy link

Chao-Jen commented Mar 8, 2017

@meequz and @caaarlos Hi I added a TimeSeriesGraph class to support datetime X axis. You may take a look at the example screenshot at https://github.com/Chao-Jen/garden.graph

@matham matham transferred this issue from kivy-garden/garden.graph Jun 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants