Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 410 Bytes

File metadata and controls

23 lines (17 loc) · 410 Bytes

Imports

$ import matplotlib.pyplot as plt

Plotting Data

$ with open('plot_data.csv', 'r') as csvfile:
    plots= csv.reader(csvfile, delimiter=',')
    for row in plots:
        x.append(float(row[0]))
        y.append(float(row[1]))


$ plt.plot(x,y, marker='o')

$ plt.title('Convergence Rate of Consensus')

$ plt.xlabel('Time in seconds')
$ plt.ylabel('Disk Distance')

$ plt.show()