mirror of https://github.com/mpastell/Weave.jl
23 lines
566 B
TeX
23 lines
566 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
|
|
\includegraphics[width=\linewidth]{figures/gadfly_formats_test_sin_fun_1.png}
|
|
\caption{sin(x) function.}
|
|
\label{fig:sin_fun}
|
|
\end{figure}
|
|
|
|
\begin{figure}[htpb]
|
|
\center
|
|
\includegraphics[width=\linewidth]{figures/gadfly_formats_test_2_1.png}
|
|
\caption{cos(x) function.}
|
|
\end{figure}
|
|
|
|
\begin{juliacode}
|
|
plot(x=x, y = cos.(2x), Geom.line)
|
|
\end{juliacode}
|
|
\includegraphics[width=15cm]{figures/gadfly_formats_test_cos2_fun_1.png}
|