\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.pdf} \caption{sin(x) function.} \label{fig:sin_fun} \end{figure} \begin{figure}[htpb] \center \includegraphics[width=\linewidth]{figures/gadfly_formats_test_2_1.pdf} \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.pdf}