mirror of https://github.com/mpastell/Weave.jl
19 lines
397 B
Plaintext
19 lines
397 B
Plaintext
~~~~{.julia}
|
|
using Gadfly
|
|
x = range(0, stop =2π, step=0.05)
|
|
plot(x=x, y = sin.(x), Geom.line)
|
|
~~~~~~~~~~~~~
|
|
|
|
|
|
![sin(x) function.](figures/gadfly_formats_test_sin_fun_1.js.svg){#fig:sin_fun}
|
|
|
|
![cos(x) function.](figures/gadfly_formats_test_2_1.js.svg)
|
|
|
|
~~~~{.julia}
|
|
plot(x=x, y = cos.(2x), Geom.line)
|
|
~~~~~~~~~~~~~
|
|
|
|
|
|
![](figures/gadfly_formats_test_cos2_fun_1.js.svg){width=15cm #fig:cos2_fun}\
|
|
|