mirror of https://github.com/mpastell/Weave.jl
19 lines
239 B
Plaintext
19 lines
239 B
Plaintext
|
|
||
|
|
||
|
<<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)
|
||
|
@
|
||
|
|
||
|
<<>>=
|
||
|
x = linspace(0, 200)
|
||
|
println(x)
|
||
|
@
|
||
|
|
||
|
<<fig_cap="Cosine function">>=
|
||
|
plot(x=x, y = cos(x), Geom.line)
|
||
|
@
|