<p>What are the available libraries for creating pretty charts and graphs in a Python application?</p>

[{'answer_id': 52655, 'author': 'Thomas Owens', 'author_id': 572, 'author_profile': 'https://Stackoverflow.com/users/572', 'pm_score': 2, 'selected': False, 'text': '<p>Have you looked into <a href="http://www.advsofteng.com/cdpython.html" rel="nofollow noreferrer">ChartDirector for Python</a>?</p>\n\n<p>I can\'t speak about this one, but I\'ve used ChartDirector for PHP and it\'s pretty good.</p>\n'}, {'answer_id': 52656, 'author': 'Mark Cidade', 'author_id': 1659, 'author_profile': 'https://Stackoverflow.com/users/1659', 'pm_score': 2, 'selected': False, 'text': '<p><a href="http://nodebox.net/code/index.php/Library" rel="nofollow noreferrer">NodeBox</a> is awesome for raw graphics creation.</p>\n'}, {'answer_id': 52780, 'author': 'elmarco', 'author_id': 1277510, 'author_profile': 'https://Stackoverflow.com/users/1277510', 'pm_score': 3, 'selected': False, 'text': '<p><a href="http://linil.wordpress.com/2008/06/14/cairoplot-plotting-graphics-using-python-and-cairo/" rel="nofollow noreferrer">CairoPlot</a></p>\n'}, {'answer_id': 53021, 'author': 'Azim J', 'author_id': 4612, 'author_profile': 'https://Stackoverflow.com/users/4612', 'pm_score': 2, 'selected': False, 'text': '<p><a href="http://code.enthought.com/chaco/" rel="nofollow noreferrer">Chaco</a> from <a href="http://www.enthought.com/" rel="nofollow noreferrer">enthought</a> is another option</p>\n'}, {'answer_id': 53468, 'author': 'Tony Meyer', 'author_id': 4966, 'author_profile': 'https://Stackoverflow.com/users/4966', 'pm_score': 4, 'selected': False, 'text': '<p>You can also use <a href="http://pygooglechart.slowchop.com/" rel="noreferrer">pygooglechart</a>, which uses the <a href="http://code.google.com/apis/chart/" rel="noreferrer">Google Chart API</a>.  This isn\'t something you\'d always want to use, but if you want a small number of good, simple, charts, and are always online, and especially if you\'re displaying in a browser anyway, it\'s a good choice.</p>\n'}, {'answer_id': 53487, 'author': 'Tyler', 'author_id': 3561, 'author_profile': 'https://Stackoverflow.com/users/3561', 'pm_score': 0, 'selected': False, 'text': '<p>You could also consider <a href="http://code.google.com/apis/chart/" rel="nofollow noreferrer">google charts</a>.</p>\n\n<p>Not technically a python API, but you can use it from python, it\'s reasonably fast to code for, and the results tend to look nice.  If you happen to be using your plots online, then this would be an even better solution.</p>\n'}, {'answer_id': 77467, 'author': 'Rodrigo', 'author_id': 14006, 'author_profile': 'https://Stackoverflow.com/users/14006', 'pm_score': 6, 'selected': False, 'text': '<p>I\'m the one supporting CairoPlot and I\'m very proud it came up here.\nSurely matplotlib is great, but I believe CairoPlot is better looking.\nSo, for presentations and websites, it\'s a very good choice.</p>\n\n<p>Today I released version 1.1. If interested, check it out at <a href="http://linil.wordpress.com/2008/09/16/cairoplot-11/" rel="nofollow noreferrer">CairoPlot v1.1</a></p>\n\n<p>EDIT: After a long and cold winter, CairoPlot is being developed again. Check out the new version on <a href="https://github.com/rodrigoaraujo01/cairoplot" rel="nofollow noreferrer">GitHub</a>.</p>\n'}, {'answer_id': 78446, 'author': 'Barry Wark', 'author_id': 2140, 'author_profile': 'https://Stackoverflow.com/users/2140', 'pm_score': 5, 'selected': False, 'text': '<p>For interactive work, <a href="http://matplotlib.sourceforge.net/" rel="noreferrer">Matplotlib</a> is the mature standard. It provides an OO-style API as well as a Matlab-style interactive API. </p>\n\n<p><a href="http://code.enthought.com/chaco/" rel="noreferrer">Chaco</a> is a more modern plotting library from the folks at Enthought. It uses Enthought\'s Kiva vector drawing library and currently works only with Wx and Qt with OpenGL on the way (Matplotlib has backends for Tk, Qt, Wx, Cocoa, and many image types such as PDF, EPS, PNG, etc.). The main advantages of Chaco are its speed relative to Matplotlib and its integration with Enthought\'s Traits API for interactive applications.</p>\n'}, {'answer_id': 210489, 'author': 'Mayowa', 'author_id': 18593, 'author_profile': 'https://Stackoverflow.com/users/18593', 'pm_score': 2, 'selected': False, 'text': '<p>You should also consider PyCha\n<a href="http://www.lorenzogil.com/projects/pycha/" rel="nofollow noreferrer">http://www.lorenzogil.com/projects/pycha/</a></p>\n'}, {'answer_id': 261358, 'author': 'mhagger', 'author_id': 24478, 'author_profile': 'https://Stackoverflow.com/users/24478', 'pm_score': 2, 'selected': False, 'text': '<p>If you like to use <a href="http://www.gnuplot.info/" rel="nofollow noreferrer">gnuplot</a> for plotting, you should consider <a href="http://gnuplot-py.sourceforge.net/" rel="nofollow noreferrer">Gnuplot.py</a>.  It provides an object-oriented interface to gnuplot, and also allows you to pass commands directly to gnuplot.  Unfortunately, it is no longer being actively developed.</p>\n'}, {'answer_id': 469858, 'author': 'Cristian Ciupitu', 'author_id': 12892, 'author_profile': 'https://Stackoverflow.com/users/12892', 'pm_score': 0, 'selected': False, 'text': '<p><a href="http://plplot.sourceforge.net/" rel="nofollow noreferrer">PLplot</a> is a cross-platform software package for creating scientific plots. They aren\'t very pretty (eye catching), but they look good enough. Have a look at <a href="http://plplot.sourceforge.net/examples.php" rel="nofollow noreferrer">some examples</a> (both source code and pictures).</p>\n\n<p>The PLplot core library can be used to create standard x-y plots, semi-log plots, log-log plots, contour plots, 3D surface plots, mesh plots, bar charts and pie charts. It runs on Windows (2000, XP and Vista), Linux, Mac OS X, and other Unices.</p>\n'}, {'answer_id': 790369, 'author': 'Gourneau', 'author_id': 56069, 'author_profile': 'https://Stackoverflow.com/users/56069', 'pm_score': 2, 'selected': False, 'text': '<p>I am a fan on PyOFC2 : <a href="http://btbytes.github.com/pyofc2/" rel="nofollow noreferrer">http://btbytes.github.com/pyofc2/</a></p>\n\n<p>It just just a package that makes it easy to generate the JSON data needed for Open Flash Charts 2, which are very beautiful.  Check out the examples on the link above.</p>\n'}, {'answer_id': 926029, 'author': 'serbaut', 'author_id': 84760, 'author_profile': 'https://Stackoverflow.com/users/84760', 'pm_score': 4, 'selected': False, 'text': '<p>You didn\'t mention what output format you need but reportlab is good at creating charts both in pdf and bitmap (e.g. png) format.</p>\n\n<p>Here is a simple example of a barchart in png and pdf format:</p>\n\n<pre><code>from reportlab.graphics.shapes import Drawing\nfrom reportlab.graphics.charts.barcharts import VerticalBarChart\n\nd = Drawing(300, 200)\n\nchart = VerticalBarChart()\nchart.width = 260\nchart.height = 160\nchart.x = 20\nchart.y = 20\nchart.data = [[1,2], [3,4]]\nchart.categoryAxis.categoryNames = [\'foo\', \'bar\']\nchart.valueAxis.valueMin = 0\n\nd.add(chart)\nd.save(fnRoot=\'test\', formats=[\'png\', \'pdf\'])\n</code></pre>\n\n<p><a href="http://i40.tinypic.com/2j677tl.jpg">alt text http://i40.tinypic.com/2j677tl.jpg</a></p>\n\n<p><em>Note: the image has been converted to jpg by the image host.</em></p>\n'}, {'answer_id': 1079651, 'author': 'tullaman', 'author_id': 84624, 'author_profile': 'https://Stackoverflow.com/users/84624', 'pm_score': 3, 'selected': False, 'text': '<p>I used pychart and thought it was very straightforward.</p>\n\n<p><a href="http://home.gna.org/pychart/" rel="noreferrer">http://home.gna.org/pychart/</a></p>\n\n<p>It\'s all native python and does not have a busload of dependencies. I\'m sure matplotlib is lovely but I\'d be downloading and installing for days and I just want one measley bar chart!</p>\n\n<p>It doesn\'t seem to have been updated in a few years but hey it works!</p>\n'}, {'answer_id': 1511278, 'author': 'Aaron Watters', 'author_id': 100981, 'author_profile': 'https://Stackoverflow.com/users/100981', 'pm_score': 1, 'selected': False, 'text': '<p>Please look at the Open Flash Chart embedding for WHIFF\n<a href="http://aaron.oirt.rutgers.edu/myapp/docs/W1100_1600.openFlashCharts" rel="nofollow noreferrer">http://aaron.oirt.rutgers.edu/myapp/docs/W1100_1600.openFlashCharts</a>\nand the amCharts embedding for WHIFF too <a href="http://aaron.oirt.rutgers.edu/myapp/amcharts/doc" rel="nofollow noreferrer">http://aaron.oirt.rutgers.edu/myapp/amcharts/doc</a>.  Thanks.</p>\n'}]
['https://Stackoverflow.com/questions/52652', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/473/']