+ boxplot.py: script to generate graphic with boxplot to illustrate distances between theorical and visual means for each population value
This commit is contained in:
parent
b70a60bc59
commit
ba6770df43
3 changed files with 123 additions and 78 deletions
19
test/boxplot.py
Executable file
19
test/boxplot.py
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
from pylab import *
|
||||
|
||||
FILE_LOCATIONS = 'means_distances_results/files_description.txt'
|
||||
|
||||
data = []
|
||||
|
||||
locations = [ line.split()[0] for line in open( FILE_LOCATIONS ) ]
|
||||
|
||||
for cur_file in locations:
|
||||
data.append( [ float(line.split()[7]) for line in open( cur_file ).readlines() ] )
|
||||
|
||||
print locations
|
||||
#print data
|
||||
|
||||
boxplot( data )
|
||||
|
||||
show()
|
||||
Reference in a new issue