9
9
# fix matplotlib DISPLAY issue
10
10
matplotlib .use ('Agg' )
11
11
import matplotlib .pyplot as plt
12
+ matplotlib .rc ('axes' ,edgecolor = '#AAAAAA' , labelcolor = '#666666' )
13
+ matplotlib .rc ('xtick' ,color = '#666666' )
14
+ matplotlib .rc ('ytick' ,color = '#666666' )
12
15
except Exception :
13
16
HAVE_MATPLOTLIB = False
14
17
@@ -45,7 +48,7 @@ def plot_data(data, filename, title):
45
48
percents [ALL_BASES [b ]][c ] = float (data [c * base_num + b ]) / float (total )
46
49
47
50
x = range (1 , cycles + 1 )
48
- plt .figure (1 , figsize = (5.5 ,3 ))
51
+ plt .figure (1 , figsize = (5.5 ,3 ), edgecolor = '#cccccc' )
49
52
plt .title (title [0 :title .find ('.' )], size = 10 )
50
53
plt .xlim (1 , cycles )
51
54
max_y = 0.35
@@ -72,11 +75,11 @@ def plot_benchmark(scores_arr, algorithms_arr, filename):
72
75
x = range (1 , passes + 1 )
73
76
title = "Benchmark Result"
74
77
plt .figure (1 )
75
- plt .title (title , size = 10 )
78
+ plt .title (title , size = 20 , color = '#333333' )
76
79
plt .xlim (1 , passes )
77
80
plt .ylim (0.9 , 1.001 )
78
- plt .ylabel ('Score' )
79
- plt .xlabel ('Validation' )
81
+ plt .ylabel ('Score' , size = 20 , color = '#333333' )
82
+ plt .xlabel ('Validation' , size = 20 , color = '#333333' )
80
83
for i in xrange (len (scores_arr )):
81
84
plt .plot (x , scores_arr [i ], color = colors [i % 5 ], label = algorithms_arr [i ], alpha = 0.5 , linewidth = 2 , linestyle = linestyles [i % 3 ])
82
85
plt .legend (loc = 'lower left' )
0 commit comments