mirror of https://github.com/mpastell/Weave.jl
23 lines
563 B
TeX
23 lines
563 B
TeX
|
\begin{juliacode}
|
||
|
using Gadfly
|
||
|
x = range(0, stop =2π, step=0.05)
|
||
|
plot(x=x, y = sin.(x), Geom.line)
|
||
|
\end{juliacode}
|
||
|
\begin{figure}[ht]
|
||
|
\center
|
||
|
\resizebox{\linewidth}{!}{\input{figures/gadfly_formats_test_sin_fun_1.tex}}
|
||
|
\caption{sin(x) function.}
|
||
|
\label{fig:sin_fun}
|
||
|
\end{figure}
|
||
|
|
||
|
\begin{figure}[htpb]
|
||
|
\center
|
||
|
\resizebox{\linewidth}{!}{\input{figures/gadfly_formats_test_2_1.tex}}
|
||
|
\caption{cos(x) function.}
|
||
|
\end{figure}
|
||
|
|
||
|
\begin{juliacode}
|
||
|
plot(x=x, y = cos.(2x), Geom.line)
|
||
|
\end{juliacode}
|
||
|
\resizebox{15cm}{!}{\input{figures/gadfly_formats_test_cos2_fun_1.tex}}
|