Untitled

 avatar
unknown
plain_text
5 months ago
496 B
1
Indexable
import matplotlib.pyplot as plt
import numpy as np
import csv


def main():
    x = []
    y = []

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

    plt.plot(x, y, color='g', label="Age")
    plt.xlabel(r'Rozegranych gier($\times$ 1000)')
    plt.ylabel('Odsetek wygranych gier[%]')
    plt.show()
if __name__ == '__main__':
    main()
Editor is loading...
Leave a Comment