From c0ccb0eb8cc6bcfc4a5012e4cc7bcc047c698e66 Mon Sep 17 00:00:00 2001 From: Emile Date: Fri, 5 Apr 2019 17:27:57 +0200 Subject: simple POC considering all stars --- viz/.viz.py.swp | Bin 0 -> 12288 bytes viz/runtime.png | Bin 0 -> 148376 bytes viz/viz.py | 14 ++++++++++++++ 3 files changed, 14 insertions(+) create mode 100644 viz/.viz.py.swp create mode 100644 viz/runtime.png create mode 100755 viz/viz.py (limited to 'viz') diff --git a/viz/.viz.py.swp b/viz/.viz.py.swp new file mode 100644 index 0000000..e117cb2 Binary files /dev/null and b/viz/.viz.py.swp differ diff --git a/viz/runtime.png b/viz/runtime.png new file mode 100644 index 0000000..211d62e Binary files /dev/null and b/viz/runtime.png differ diff --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) -- cgit 1.4.1