2016-04-27 21:02:20 +02:00
|
|
|
~~~~{.julia}
|
|
|
|
using Plots
|
|
|
|
pyplot()
|
|
|
|
x = linspace(0, 2*pi)
|
|
|
|
println(x)
|
|
|
|
~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
|
|
~~~~
|
|
|
|
linspace(0.0,6.283185307179586,50)
|
|
|
|
~~~~
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
~~~~{.julia}
|
2016-11-01 14:44:58 +01:00
|
|
|
p = plot(x, sin(x), size =(900,300))
|
2016-04-27 21:02:20 +02:00
|
|
|
~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
~~~~{.julia}
|
2016-11-01 14:44:58 +01:00
|
|
|
julia> plot(x, sin(x))
|
2016-11-01 14:23:14 +01:00
|
|
|
|
2017-03-13 15:12:57 +01:00
|
|
|
|
2016-04-27 21:02:20 +02:00
|
|
|
~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
2016-11-01 14:23:14 +01:00
|
|
|
![](figures/plotsjl_test_2_1.png)\
|
|
|
|
|
2016-04-27 21:02:20 +02:00
|
|
|
|
|
|
|
~~~~{.julia}
|
|
|
|
plot(rand(100) / 3,reg=true,fill=(0,:green))
|
|
|
|
scatter!(rand(100),markersize=6,c=:orange)
|
|
|
|
~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
2016-11-01 14:23:14 +01:00
|
|
|
![](figures/plotsjl_test_3_1.png)\
|
|
|
|
|
2016-04-27 21:02:20 +02:00
|
|
|
|
|
|
|
~~~~{.julia}
|
|
|
|
julia> plot(rand(100) / 3,reg=true,fill=(0,:green))
|
|
|
|
|
2016-11-01 14:23:14 +01:00
|
|
|
|
2016-04-27 21:02:20 +02:00
|
|
|
~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
|
|
![](figures/plotsjl_test_4_1.png)\
|
|
|
|
|
|
|
|
|
|
|
|
~~~~{.julia}
|
|
|
|
julia> scatter!(rand(100),markersize=6,c=:orange)
|
2016-11-01 14:23:14 +01:00
|
|
|
|
2017-03-13 15:12:57 +01:00
|
|
|
|
2016-04-27 21:02:20 +02:00
|
|
|
~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
|
|
![](figures/plotsjl_test_4_2.png)\
|
|
|
|
|
|
|
|
|
|
|
|
![A random walk.](figures/plotsjl_test_random_1.png)
|