Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating Charts & Graphs with Python [closed]

I'm looking for a python library/module that will allow me to create eye catching charts. The module must have/support the following

  • Windows Support

    As I work mainly in windows(using Eclipse in Windows), this is crucial, a simple install .exe file (or adequate install instructions a must)

  • Work on Python 2.7

    I've got Python 2.7.2 installed don't really want to go get some other thing.

  • Not require being on the web

    I've looked at googlepychart, and it looks like you need to be on the web to make it work, I'm not on the world wide web, actually behind a VERY restrictive firewall.

  • Output should be viewable from HTML browser

    While I cannot get onto the WorldWideWeb, I can see localhost, it would be great if the chart result be viewable in a browser.

  • Good documentation, at the very least some samples on how I can use the library.

If there are any suggestions on how I can create a web app using python that simply display/charts the data i pass in, such advice would be much appreciated

like image 582
user595985 Avatar asked Oct 19 '11 13:10

user595985


3 Answers

Plotly lets you make graphs using their online Python sandbox. Their gallery has some example scientific graphs with the Python scripts that generated them: https://plotly.com/python/. Here's a sample from the gallery:

enter image description here

like image 131
user1561393 Avatar answered Oct 17 '22 08:10

user1561393


matplotlib has become a mature and widely used graphing package.

As for your interaction with a web browser, you may have to use another package in conjunction. I suggest CherryPy because it is simple.

like image 38
Donald Miner Avatar answered Oct 17 '22 08:10

Donald Miner


If you can do without using a browser, you can use one of Python Plotting Libraries. If you insist on using the browser, you would be better off using a javascript-based library for the view. I have used web2py web framework before along with protovis. But a simpler web framework like Bottle or CherryPy can also be used to pass the data to the view. Bottle has a Simple Template Engine (very similar to what I used in Web2py).

Developing in two languages (one of which is javascript) is a bit of a pain. You could use something like Pyjamas that translates python into javascript but I am not really sure if this would work out well, and I have no experience with it.

like image 28
amit kumar Avatar answered Oct 17 '22 08:10

amit kumar