2014-12-06 18:16:45 +01:00
|
|
|
|
|
|
|
# Gadfly
|
|
|
|
|
|
|
|
````julia
|
|
|
|
julia> using Gadfly
|
|
|
|
|
|
|
|
julia> x = linspace(0, 2π, 200)
|
|
|
|
|
2016-04-11 20:23:15 +02:00
|
|
|
linspace(0.0,6.283185307179586,200)
|
2014-12-06 18:16:45 +01:00
|
|
|
julia> plot(x=x, y = sin(x), Geom.line)
|
|
|
|
|
|
|
|
````
|
|
|
|
|
2014-12-08 22:51:27 +01:00
|
|
|
|
2014-12-06 18:16:45 +01:00
|
|
|
![](figures/gadfly_markdown_test_1_1.png)
|
|
|
|
|
|
|
|
````julia
|
|
|
|
julia> y = 20
|
|
|
|
|
2016-04-11 20:23:15 +02:00
|
|
|
20
|
2014-12-06 18:16:45 +01:00
|
|
|
julia> plot(x=x, y = cos(x), Geom.line)
|
|
|
|
````
|
|
|
|
|
2014-12-08 22:51:27 +01:00
|
|
|
|
2014-12-06 18:16:45 +01:00
|
|
|
![](figures/gadfly_markdown_test_1_2.png)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
````julia
|
|
|
|
x = linspace(0, 200)
|
|
|
|
println(x)
|
|
|
|
````
|
|
|
|
|
|
|
|
|
2016-04-27 20:24:44 +02:00
|
|
|
````
|
2016-04-11 20:23:15 +02:00
|
|
|
linspace(0.0,200.0,50)
|
2014-12-06 18:16:45 +01:00
|
|
|
````
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
````julia
|
|
|
|
julia> using Gadfly
|
|
|
|
|
|
|
|
julia> x = linspace(0, 2π, 200)
|
|
|
|
|
2016-04-11 20:23:15 +02:00
|
|
|
linspace(0.0,6.283185307179586,200)
|
2014-12-06 18:16:45 +01:00
|
|
|
julia> plot(x=x, y = sin(x), Geom.line)
|
|
|
|
|
|
|
|
````
|
|
|
|
|
2014-12-08 22:51:27 +01:00
|
|
|
|
2014-12-06 18:16:45 +01:00
|
|
|
![](figures/gadfly_markdown_test_3_1.png)
|
|
|
|
|
|
|
|
````julia
|
|
|
|
julia> y = 20
|
|
|
|
|
2016-04-11 20:23:15 +02:00
|
|
|
20
|
2014-12-06 18:16:45 +01:00
|
|
|
julia> plot(x=x, y = cos(x), Geom.line)
|
|
|
|
````
|
|
|
|
|
2014-12-08 22:51:27 +01:00
|
|
|
|
2014-12-06 18:16:45 +01:00
|
|
|
![](figures/gadfly_markdown_test_3_2.png)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
````julia
|
|
|
|
x = linspace(0, 200)
|
|
|
|
println(x)
|
|
|
|
````
|
|
|
|
|
|
|
|
|
2016-04-27 20:24:44 +02:00
|
|
|
````
|
2016-04-11 20:23:15 +02:00
|
|
|
linspace(0.0,200.0,50)
|
2014-12-06 18:16:45 +01:00
|
|
|
````
|
|
|
|
|
|
|
|
|