Skip to content

Instantly share code, notes, and snippets.

@nsmith5
Created June 28, 2016 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nsmith5/4a28a53ed280d336f9714fa40abc4abc to your computer and use it in GitHub Desktop.
Save nsmith5/4a28a53ed280d336f9714fa40abc4abc to your computer and use it in GitHub Desktop.
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