We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac0679c commit 1edc428Copy full SHA for 1edc428
example_problems/boolfind/output_visualizer/boolfind_visual/visualize.py
@@ -1,13 +1,12 @@
1
#!/usr/bin/env python3
2
#
3
# Invoke as:
4
-# <output_visualizer_program> input answer_file feedback_dir [additional_arguments] < team_output [ > team_input ]
+# <output_visualizer_program> answer_file feedback_file
5
import matplotlib.pyplot as plt
6
import sys
7
8
my_name = sys.argv[0]
9
my_input = sys.argv[1]
10
-#real_answer = sys.argv[2]
11
my_feedback = sys.argv[2]
12
13
with open(my_input, 'r') as f:
@@ -16,7 +15,6 @@
16
15
for line in lines:
17
if 'READ' in line:
18
vals.append(int(line.split(' ')[-1]))
19
- print(line)
20
plt.plot([0,1])
21
plt.ylabel('Guesses')
22
- plt.savefig(f"{my_feedback}")
+ plt.savefig(f"{my_feedback}", format='png')
0 commit comments