2016-04-20 20:01:14 +02:00
|
|
|
% Intro to Weave.jl with Gadfly
|
2016-04-20 14:41:54 +02:00
|
|
|
% Matti Pastell
|
2016-04-20 15:32:22 +02:00
|
|
|
% 20th April 2016
|
|
|
|
|
2016-04-20 14:41:54 +02:00
|
|
|
|
2016-04-20 20:01:14 +02:00
|
|
|
|
2016-04-20 14:41:54 +02:00
|
|
|
|
|
|
|
```julia
|
|
|
|
using Weave
|
|
|
|
weave(Pkg.dir("Weave","examples","gadfly_sample.mdw"), out_path = :pwd)
|
|
|
|
```
|
2014-12-03 14:41:53 +01:00
|
|
|
|
|
|
|
<<term=true>>=
|
|
|
|
using Gadfly
|
|
|
|
x = linspace(0, 2π, 200)
|
|
|
|
plot(x=x, y = sin(x), Geom.line)
|
|
|
|
y = 20
|
|
|
|
plot(x=x, y = cos(x), Geom.line)
|
|
|
|
@
|
|
|
|
|
|
|
|
<<>>=
|
2014-12-05 09:37:02 +01:00
|
|
|
x = linspace(0, 200)
|
2014-12-03 14:41:53 +01:00
|
|
|
println(x)
|
|
|
|
@
|