Created
June 28, 2016 15:14
-
-
Save nsmith5/4a28a53ed280d336f9714fa40abc4abc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using PyPlot | |
function make_figure(arr) | |
fig = figure() | |
ax = fig[:add_subplot](111) | |
imag = ax[:imshow](arr) | |
fig[:savefig]("output.png") | |
plt[:close](fig) | |
return nothing | |
end | |
function main() | |
iterations = parse(Int, ARGS[1]) | |
for i in 1:iterations | |
g = randn(1000, 1000) | |
make_figure(g) | |
end | |
return 0 | |
end | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment