Weave.jl/test/documents/plotsjl/plotsjl_test_gr.md.ref

42 lines
569 B
Plaintext
Raw Normal View History

2016-12-13 20:23:57 +01:00
~~~~{.julia}
using Plots
gr()
2018-08-14 11:32:51 +02:00
x = range(0, stop=2π, length=50)
2016-12-13 20:23:57 +01:00
println(x)
~~~~~~~~~~~~~
~~~~
2018-01-02 14:54:55 +01:00
0.0:0.1282282715750936:6.283185307179586
2016-12-13 20:23:57 +01:00
~~~~
~~~~{.julia}
2018-01-02 14:54:55 +01:00
p = plot(x, sin.(x), size =(900,300))
p
2016-12-13 20:23:57 +01:00
~~~~~~~~~~~~~
2018-01-02 14:54:55 +01:00
![](figures/plotsjl_test_gr_1_1.png)\
2016-12-13 20:23:57 +01:00
2018-01-02 14:54:55 +01:00
~~~~{.julia}
plot(x, sin.(x))
2017-03-13 15:12:57 +01:00
~~~~~~~~~~~~~
2016-12-13 20:23:57 +01:00
2017-03-14 08:27:16 +01:00
![](figures/plotsjl_test_gr_2_1.png)\
2016-12-13 20:23:57 +01:00
~~~~{.julia}
plot(rand(100) / 3,reg=true,fill=(0,:green))
scatter!(rand(100),markersize=6,c=:orange)
~~~~~~~~~~~~~
2017-03-14 08:27:16 +01:00
![](figures/plotsjl_test_gr_3_1.png)\
2016-12-13 20:23:57 +01:00
![A random walk.](figures/plotsjl_test_gr_random_1.png){#fig:random}