about summary refs log tree commit diff
path: root/viz
diff options
context:
space:
mode:
Diffstat (limited to 'viz')
-rw-r--r--viz/.viz.py.swpbin0 -> 12288 bytes
-rw-r--r--viz/runtime.pngbin0 -> 148376 bytes
-rwxr-xr-xviz/viz.py14
3 files changed, 14 insertions, 0 deletions
diff --git a/viz/.viz.py.swp b/viz/.viz.py.swp
new file mode 100644
index 0000000..e117cb2
--- /dev/null
+++ b/viz/.viz.py.swp
Binary files differdiff --git a/viz/runtime.png b/viz/runtime.png
new file mode 100644
index 0000000..211d62e
--- /dev/null
+++ b/viz/runtime.png
Binary files differdiff --git a/viz/viz.py b/viz/viz.py
new file mode 100755
index 0000000..073425c
--- /dev/null
+++ b/viz/viz.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python3
+
+import matplotlib.pyplot as plt
+import sys
+
+lista = [1000, 2000, 4000, 8000, 16000, 32000, 64000]
+listb = [0.037960, 0.175104, 0.697543, 2.845626, 11.427957, 46.602990, 183.332388]
+
+fig = plt.figure()
+plt.plot(lista, listb, "-o")
+plt.xlabel('Nr. of stars')
+plt.ylabel('Time needed to calculate all the forces acting (seconds)')
+#plt.show()
+plt.savefig(sys.argv[1], dpi=400)