tAdded decagon example - polygen - generative drawing of polygonal patterns
 (HTM) git clone git://src.adamsgaard.dk/polygen
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit e8516738e741fb59a6391f06af29a5b68542cacd
 (DIR) parent 6df0809853239266b9fceae5713fe6ff616be616
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Fri, 14 Mar 2014 12:59:07 +0100
       
       Added decagon example
       
       Diffstat:
         M README.rst                          |      10 +++++++++-
         A decagon.png                         |       0 
         A decagon.py                          |      18 ++++++++++++++++++
       
       3 files changed, 27 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/README.rst b/README.rst
       t@@ -11,9 +11,17 @@ Written by Anders Damsgaard, https://github.com/anders-dc/polygen
        Examples
        --------
        
       +``python decagon.py``
       +
       +.. image:: decagon.png
       +   :scale: 60%
       +   :alt: Decagon with all-to-all edges
       +   :align: center
       +
       +
        ``python octahedron.py``
        
        .. image:: octahedron.png
           :scale: 60%
       -   :alt: Octahedron with filled circle
       +   :alt: Octahedron with filled circle. Opposite corners are not connected.
           :align: center
 (DIR) diff --git a/decagon.png b/decagon.png
       Binary files differ.
 (DIR) diff --git a/decagon.py b/decagon.py
       t@@ -0,0 +1,18 @@
       +#!/usr/bin/env python
       +import polygen
       +import matplotlib.pyplot as plt
       +
       +# Generate regular polygon with eight corners (decagon)
       +decagon = polygen.regular_star_polygon(10)
       +
       +# Create the polygon plotting object
       +p = polygen.polyplot()
       +
       +# Pass the decagon points to the plot object
       +p.set_points(decagon.points)
       +
       +# Plot decagon, do not draw lines to opposite points. Use custom colors.
       +p.plot_all_to_all(line_width=2, line_color='#666666')
       +
       +# Save figure as file
       +p.save_plot('decagon', transparent_background=True)