Weave.jl/examples/gadfly_sample.jmd

17 lines
210 B
Plaintext
Raw Normal View History

2014-12-05 23:18:25 +01:00
# Gadfly
```{julia term=true; fig_width=5}
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)
```
```{julia}
x = linspace(0, 200)
println(x)
```