Which python visualization library to use with kivy?

5,643 views
Skip to first unread message

James 0L

unread,
Sep 24, 2013, 9:29:54 AM9/24/13
to kivy-...@googlegroups.com
Is there a python data visualization library (i.e. to do basic charts, line graphs, etc.) that works well with kivy, preferably doesn't depend on numpy, and will work well with ios and android? Thank you.

lirre

unread,
Sep 24, 2013, 3:27:38 PM9/24/13
to kivy-...@googlegroups.com
There is a graph widget for kivy. see the kivy garden page:

Gully

unread,
Sep 24, 2013, 3:58:36 PM9/24/13
to kivy-...@googlegroups.com
A quick followup question - I just tried doing 'garden list' under windows 7 (Kivy 1.7.2) and got an empty result, any idea why?

lirre

unread,
Sep 24, 2013, 5:11:19 PM9/24/13
to kivy-...@googlegroups.com
I think it might be because you have not installed any packages from kivy garden. Kivy garden is a collection of kivy apps that users can download and use. 

the graph package is here:

Sam Brotherton

unread,
Sep 24, 2013, 8:56:27 PM9/24/13
to kivy-...@googlegroups.com
I built a kivy-plotter library a while back that does pretty nice charts (they resize properly, and have a scale, highlighting, arrows, etc). Unfortunately I started working at a non-Python shop about 6 months ago and haven't gotten around to packaging it up nicely. The code is here, and you are absolutely more than welcome to take/modify any/all of it. I've attached a screenshot of the kind of charts it makes right now.

If there's interest I'll package it up and add to kivy garden.

Sam


--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Screen Shot 2013-09-24 at 5.52.47 PM.png

Daniel Plucenio

unread,
Sep 25, 2013, 7:30:45 AM9/25/13
to kivy-...@googlegroups.com
This looks really nice.
Since we are talking about that, what is the reason for the python distribution that comes with kivy to not have the tktinker modules?
A better question than that: Has anybody in the group been successful using matplotlib with the kivy python interpreter (I mean what  backend and how did you do it)? 

I ask that because Id really love to have an unique python interpreter in my environment, and I happen to use matplotlib a lot :)

Thanks!


2013/9/24 Sam Brotherton <sbro...@gmail.com>

James 0L

unread,
Sep 25, 2013, 8:22:33 AM9/25/13
to kivy-...@googlegroups.com
Awesome - thanks, lirre!

Also, since I posted my question, I've found some pycairo/py2cairo-based modules (thus, presenting an alternative to matplotlib) that don't (as far as I can tell so far) seem to present any issues with kivy. Graphication is one example.

James 0L

unread,
Sep 25, 2013, 8:43:24 AM9/25/13
to kivy-...@googlegroups.com
Sam - thanks, the screenshot of the library's functionality looks really cool! I'll take some time to dig into the code.

I've only been learning kivy for a little while, and probably can't speak for any other users, but on the topic of whether there's interest in seeing the library as a package, I think it's worth mentioning that a few of us have been having issues using matplotlib (and, thus, visualization modules that depend on matplotlib - and there are quite a few of those), so perhaps another plotting option could be a worthwhile contribution in extending the functionality of the framework.

Sam Brotherton

unread,
Sep 25, 2013, 1:48:47 PM9/25/13
to kivy-...@googlegroups.com
Glad you think it might be of value! I did take a look at the kivy graph module in kivy garden, and that code is considerably more mature/generic than mine. Just an FYI if you're planning to work on either project.

Is there any possibility of matplotlib working on Android/iOS? That would obviously be a good solution but I can't imagine trying to get gnuplot (which matplotlib is based on afaik) to run on mobile.

Sam

DanielK

unread,
Sep 26, 2013, 2:46:51 PM9/26/13
to kivy-...@googlegroups.com
Hi,

there is a gnuplot-app available for Android. Maybe it works...

Daniel

Kovak

unread,
Sep 26, 2013, 7:54:37 PM9/26/13
to kivy-...@googlegroups.com
It looks like the base gnuplot is C code so it should be fairly easy getting it compiled in python-for-android in addition to the python library that binds to it. Take a look into other recipes that do this(I think Numpy and Cymunk both require some C compilation). and ultimately it's just spitting out an image that you can display in kivy as you please

James 0L

unread,
Sep 27, 2013, 4:13:59 PM9/27/13
to kivy-...@googlegroups.com
Thanks, Daniel and Kovak.

So far, I've implemented my chart using garden's graph module. It gets the job done for basic line graphs, but its functionality is a bit limited. For example, it does not appear that you can have non-numeric labels for the axis tics. So I guess that suggestions for alternative modules are always welcome.

Akshay Arora

unread,
Sep 29, 2013, 3:30:21 PM9/29/13
to kivy-...@googlegroups.com
You could also just extend the existing graph module to enable/allow non numerical tics. and do a pull to the repo.

Best Regards


On Sat, Sep 28, 2013 at 1:43 AM, James 0L <james...@gmail.com> wrote:
Thanks, Daniel and Kovak.

So far, I've implemented my chart using garden's graph module. It gets the job done for basic line graphs, but its functionality is a bit limited. For example, it does not appear that you can have non-numeric labels for the axis tics. So I guess that suggestions for alternative modules are always welcome.

--
Reply all
Reply to author
Forward
0 new messages