Skip to content

Commit 02f1415

Browse files
committed
update drawing
1 parent aec8614 commit 02f1415

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

draw.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
# fix matplotlib DISPLAY issue
1010
matplotlib.use('Agg')
1111
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')
1215
except Exception:
1316
HAVE_MATPLOTLIB = False
1417

@@ -45,7 +48,7 @@ def plot_data(data, filename, title):
4548
percents[ALL_BASES[b]][c] = float(data[c * base_num + b]) / float(total)
4649

4750
x = range(1, cycles+1)
48-
plt.figure(1, figsize=(5.5,3))
51+
plt.figure(1, figsize=(5.5,3), edgecolor='#cccccc')
4952
plt.title(title[0:title.find('.')], size=10)
5053
plt.xlim(1, cycles)
5154
max_y = 0.35
@@ -72,11 +75,11 @@ def plot_benchmark(scores_arr, algorithms_arr, filename):
7275
x = range(1, passes+1)
7376
title = "Benchmark Result"
7477
plt.figure(1)
75-
plt.title(title, size=10)
78+
plt.title(title, size=20, color='#333333')
7679
plt.xlim(1, passes)
7780
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')
8083
for i in xrange(len(scores_arr)):
8184
plt.plot(x, scores_arr[i], color = colors[i%5], label=algorithms_arr[i], alpha=0.5, linewidth=2, linestyle = linestyles[i%3])
8285
plt.legend(loc='lower left')

0 commit comments

Comments
 (0)