From 29d15b00b7fff52f6c6070e7cb79de51d93a6c09 Mon Sep 17 00:00:00 2001 From: Matti Pastell Date: Sat, 6 Dec 2014 00:18:25 +0200 Subject: [PATCH] Added markdown example --- examples/gadfly_sample.jmd | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 examples/gadfly_sample.jmd diff --git a/examples/gadfly_sample.jmd b/examples/gadfly_sample.jmd new file mode 100644 index 0000000..64a394d --- /dev/null +++ b/examples/gadfly_sample.jmd @@ -0,0 +1,16 @@ + +# Gadfly + +```{julia term=true; fig_width=5} +using Gadfly +x = linspace(0, 2π, 200) +plot(x=x, y = sin(x), Geom.line) +y = 20 +plot(x=x, y = cos(x), Geom.line) +``` + + +```{julia} +x = linspace(0, 200) +println(x) +```