#!/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)