Add a pyplot based julia test case

pull/42/head
yuvipanda 2017-07-29 20:19:40 -07:00
rodzic 8edc1ce0e0
commit 0ce3a2d68d
3 zmienionych plików z 16 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1 @@
PyPlot

Wyświetl plik

@ -0,0 +1,3 @@
dependencies:
- matplotlib

Wyświetl plik

@ -0,0 +1,12 @@
#!/usr/bin/env julia
# We try to plot something, and see if the file saved exists
using PyPlot
x = linspace(0,2*pi,1000); y = sin(3*x + 4*cos(2*x))
plot(x, y, color="red", linewidth=2.0, linestyle="--")
savefig("graph.png")
if isfile("graph.png")
exit(0)
else
exit(1)
end