plot 14
This commit is contained in:
parent
d80de411bf
commit
45c382b3a3
@ -3,14 +3,16 @@ import numpy as np
|
|||||||
|
|
||||||
def readFile(file):
|
def readFile(file):
|
||||||
with open(file, 'r') as inFile:
|
with open(file, 'r') as inFile:
|
||||||
|
data = inFile.read()
|
||||||
countL = 0
|
countL = 0
|
||||||
for line in inFile:
|
for line in inFile:
|
||||||
countL += 1
|
countL += 1
|
||||||
y2 = np.loadtxt(file)
|
y2 = [[0] for row in data]
|
||||||
return countL, y2;
|
return countL, y2;
|
||||||
|
|
||||||
def createplotWER():
|
def createplotWER():
|
||||||
|
x = []
|
||||||
|
y = []
|
||||||
countL, y2 = readFile('werForPlot.txt')
|
countL, y2 = readFile('werForPlot.txt')
|
||||||
# Data for plotting
|
# Data for plotting
|
||||||
x = np.arange(1, countL, 1)
|
x = np.arange(1, countL, 1)
|
||||||
@ -28,7 +30,8 @@ def createplotWER():
|
|||||||
plt.show()
|
plt.show()
|
||||||
|
|
||||||
def createplotSRR():
|
def createplotSRR():
|
||||||
|
x = []
|
||||||
|
y = []
|
||||||
countL, y2 = readFile('srrForPlot.txt')
|
countL, y2 = readFile('srrForPlot.txt')
|
||||||
# Data for plotting
|
# Data for plotting
|
||||||
x = np.arange(1, countL)
|
x = np.arange(1, countL)
|
||||||
|
Loading…
Reference in New Issue
Block a user