| 1 | .. index:: introduction |
|---|
| 2 | .. _introduction: |
|---|
| 3 | |
|---|
| 4 | ************ |
|---|
| 5 | Introduction |
|---|
| 6 | ************ |
|---|
| 7 | |
|---|
| 8 | PyCha is a very simple `Python <http://www.python.org>`_ package for drawing |
|---|
| 9 | charts using the `Cairo <http://www.cairographics.org/>`_ library. Its lead |
|---|
| 10 | developer is Lorenzo Gil Sanchez. |
|---|
| 11 | |
|---|
| 12 | .. index:: pycha goals |
|---|
| 13 | |
|---|
| 14 | PyCha aims to be: |
|---|
| 15 | |
|---|
| 16 | * Lightweight |
|---|
| 17 | * Simple to use |
|---|
| 18 | * Nice looking with default values |
|---|
| 19 | * Customizable |
|---|
| 20 | |
|---|
| 21 | .. index:: chart types |
|---|
| 22 | .. _pycha-chart-types: |
|---|
| 23 | |
|---|
| 24 | The following charts are currently supported (see screenshots below): |
|---|
| 25 | |
|---|
| 26 | * horizontal bar charts (``pycha.bar.HorizontalBarChart``) |
|---|
| 27 | * vertical bar charts (``pycha.bar.VerticalBarChart``) |
|---|
| 28 | * pie charts (``pycha.pie.PieChart``) |
|---|
| 29 | * line charts (``pycha.line.LineChart``) |
|---|
| 30 | * scatter charts (``pycha.scatter.ScatterChart``) |
|---|
| 31 | |
|---|
| 32 | Support for stacked bar charts is planned for a future release. |
|---|
| 33 | |
|---|
| 34 | PyCha is distributed under the terms of the `GNU Lesser General Public License |
|---|
| 35 | <http://www.gnu.org/licenses/lgpl.html>`_. |
|---|
| 36 | |
|---|
| 37 | If you require more advanced graphs, you might want to consider `matplotlib |
|---|
| 38 | <http://matplotlib.sourceforge.net/>`_. |
|---|
| 39 | |
|---|
| 40 | .. index:: screenshots |
|---|
| 41 | .. _screenshots: |
|---|
| 42 | |
|---|
| 43 | Screenshots |
|---|
| 44 | =========== |
|---|
| 45 | |
|---|
| 46 | - **horizontal bar chart** |
|---|
| 47 | |
|---|
| 48 | .. image:: ../examples/hbarchart.png |
|---|
| 49 | |
|---|
| 50 | - **vertical bar chart** |
|---|
| 51 | |
|---|
| 52 | .. image:: ../examples/vbarchart.png |
|---|
| 53 | |
|---|
| 54 | - **pie chart** |
|---|
| 55 | |
|---|
| 56 | .. image:: ../examples/piechart.png |
|---|
| 57 | |
|---|
| 58 | - **line chart** |
|---|
| 59 | |
|---|
| 60 | .. image:: ../examples/linechart.png |
|---|
| 61 | |
|---|
| 62 | - **scatter chart** |
|---|
| 63 | |
|---|
| 64 | .. image:: ../examples/scatterchart.png |
|---|
| 65 | |
|---|
| 66 | .. index:: output formats |
|---|
| 67 | .. _output-formats: |
|---|
| 68 | |
|---|
| 69 | Output Formats |
|---|
| 70 | ============== |
|---|
| 71 | |
|---|
| 72 | PyCha uses the `Cairo <http://www.cairographics.org/>`_ library so it should support |
|---|
| 73 | all `Cairo surfaces <http://www.cairographics.org/manual/cairo-surfaces.html>`_. |
|---|
| 74 | |
|---|
| 75 | Please refer to :ref:`save-chart-to-file` and :ref:`embed-chart-in-gtk-app` for |
|---|
| 76 | examples. |
|---|
| 77 | |
|---|
| 78 | .. _get-involved: |
|---|
| 79 | |
|---|
| 80 | Get Involved |
|---|
| 81 | ============ |
|---|
| 82 | |
|---|
| 83 | PyCha has a mailing list at `http://groups.google.com/group/pycha |
|---|
| 84 | <http://groups.google.com/group/pycha>`_. Questions and ideas are welcome. |
|---|
| 85 | |
|---|