commit 4b7bdbde885972f2adc3b8b56d7adcddec7008a6
parent 1aed2ac0d44b8bd11a7a7907c84bda8f31b19cdf
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Fri, 14 Mar 2014 14:43:40 +0100
Added big octahedron rendering, processed in gimp
Diffstat:
4 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/octahedron-bg-gimp.png b/octahedron-bg-gimp.png
Binary files differ.
diff --git a/octahedron-bg.png b/octahedron-bg.png
Binary files differ.
diff --git a/octahedron-bg.py b/octahedron-bg.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+import polygen
+import matplotlib.pyplot as plt
+
+# Generate regular polygon with eight corners (octahedron)
+octahedron = polygen.regular_star_polygon(8)
+
+# Create the polygon plotting object
+p = polygen.polyplot(figure_size_inches=(25.50,14.40), dpi=160)
+
+# Pass the octahedron points to the plot object
+p.set_points(octahedron.points)
+
+# Plot octahedron, do not draw lines to opposite points. Use custom colors.
+p.plot_all_to_all(line_width=4, line_color='#666666',
+ exceptions=[[0,4], [1,5], [2,6], [3,7]])
+
+# Place red dot in center
+p.plot_circle([0,0], 0.34, color='#993333')
+
+# Save figure as file
+p.save_plot('octahedron-bg',
+ background_color='#333333', transparent_background=False)
diff --git a/octahedron-bg.xcf b/octahedron-bg.xcf
Binary files differ.