2016-04-27 14:10:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
```julia
|
|
|
|
using Plots
|
|
|
|
pyplot()
|
|
|
|
x = linspace(0, 2*pi)
|
|
|
|
println(x)
|
2016-04-27 18:18:17 +02:00
|
|
|
p = plot(x = x, y = sin(x), size =(900,300))
|
2016-04-27 14:10:26 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```julia; term=true
|
|
|
|
plot(x = x, y = sin(x))
|
|
|
|
```
|
|
|
|
|
|
|
|
```julia
|
|
|
|
plot(rand(100) / 3,reg=true,fill=(0,:green))
|
|
|
|
scatter!(rand(100),markersize=6,c=:orange)
|
|
|
|
```
|
|
|
|
|
|
|
|
```julia; term=true
|
|
|
|
plot(rand(100) / 3,reg=true,fill=(0,:green))
|
|
|
|
scatter!(rand(100),markersize=6,c=:orange)
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```{julia;echo=false; fig_cap="A random walk."; label="random"}
|
|
|
|
plot(y = cumsum(randn(1000, 1)))
|
|
|
|
```
|