mirror of https://github.com/mpastell/Weave.jl
26 lines
358 B
Plaintext
26 lines
358 B
Plaintext
|
|
|
|
```julia
|
|
using Plots
|
|
gr()
|
|
x = range(0, stop=2π, length=50)
|
|
println(x)
|
|
p = plot(x, sin.(x), size =(900,300))
|
|
p
|
|
```
|
|
|
|
|
|
```julia
|
|
plot(x, sin.(x))
|
|
```
|
|
|
|
```julia
|
|
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(cumsum(randn(1000, 1), dims=1))
|
|
```
|