$course$/top/Exports
Demo of matplotlib output image capture
Write a program that uses matplotlib to plot 2 cycles of a sine wave.]]>
1.0000000
0.0000000
0
python3
0
1
0
0
0
11
100
{}".format(output)
if not failed and os.path.isfile('matplotliboutput.png'):
data_uri = make_data_uri('matplotliboutput.png')
html += """
""".format(data_uri)
# Lastly print the JSON-encoded result required of a combinator grader
print(json.dumps({'epiloguehtml': html,
'fraction': 0.0 if failed else 1.0
}))
]]>
1
TemplateGrader
500
1
0
0
0
0
1