diff options
author | Emile <hanemile@protonmail.com> | 2019-04-05 17:27:57 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-04-05 17:27:57 +0200 |
commit | c0ccb0eb8cc6bcfc4a5012e4cc7bcc047c698e66 (patch) | |
tree | 9eeb63f4d98dc85ea23bf32546127638ed14f9cd /viz | |
parent | 16f3f56562393081c42ce3f09541c1fab223d921 (diff) |
simple POC considering all stars
Diffstat (limited to 'viz')
-rw-r--r-- | viz/.viz.py.swp | bin | 0 -> 12288 bytes | |||
-rw-r--r-- | viz/runtime.png | bin | 0 -> 148376 bytes | |||
-rwxr-xr-x | viz/viz.py | 14 |
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) |