created two boxplot script files one to generate image the other to display with matplotlab
This commit is contained in:
parent
c9843c3cfa
commit
849a5ec670
4 changed files with 19 additions and 5 deletions
|
|
@ -95,6 +95,7 @@ ELSEIF(ENABLE_CMAKE_TESTING)
|
|||
|
||||
SET(RESOURCES
|
||||
boxplot.py
|
||||
boxplot_to_png.py
|
||||
)
|
||||
|
||||
FOREACH(file ${RESOURCES})
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ import pylab
|
|||
import sys
|
||||
|
||||
if __name__ == '__main__':
|
||||
if len(sys.argv) < 3:
|
||||
print 'Usage: boxplot.py [Results files, ...] [output file in .png]'
|
||||
if len(sys.argv) < 2:
|
||||
print 'Usage: boxplot.py [Results files, ...]'
|
||||
sys.exit()
|
||||
|
||||
for i in range(1, len(sys.argv) - 1):
|
||||
for i in range(1, len(sys.argv)):
|
||||
pylab.boxplot( [ [ float(value) for value in line.split() ] for line in open( sys.argv[i] ).readlines() ] )
|
||||
|
||||
pylab.savefig( sys.argv[ len(sys.argv) - 1 ] )
|
||||
pylab.show()
|
||||
|
|
|
|||
14
eo/test/boxplot_to_png.py
Executable file
14
eo/test/boxplot_to_png.py
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import pylab
|
||||
import sys
|
||||
|
||||
if __name__ == '__main__':
|
||||
if len(sys.argv) < 3:
|
||||
print 'Usage: boxplot.py [Results files, ...] [output file in .png]'
|
||||
sys.exit()
|
||||
|
||||
for i in range(1, len(sys.argv) - 1):
|
||||
pylab.boxplot( [ [ float(value) for value in line.split() ] for line in open( sys.argv[i] ).readlines() ] )
|
||||
|
||||
pylab.savefig( sys.argv[ len(sys.argv) - 1 ] )
|
||||
|
|
@ -13,7 +13,6 @@
|
|||
#include <es/make_real.h>
|
||||
|
||||
#include <apply.h>
|
||||
#include <omp_apply.h>
|
||||
|
||||
#include <omp.h>
|
||||
|
||||
|
|
|
|||
Reference in a new issue