about summary refs log tree commit diff
path: root/viz/viz.py
blob: 073425c27550172a060106dc08eba191620e6816 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)