diff --git a/test/REQUIRE b/test/REQUIRE index 672d9c4..efaa532 100644 --- a/test/REQUIRE +++ b/test/REQUIRE @@ -3,5 +3,6 @@ Cairo Gadfly PyPlot #Winston +GR DSP Plots diff --git a/test/documents/plotsjl/plotsjl_test_gr.md.ref b/test/documents/plotsjl/plotsjl_test_gr.md.ref new file mode 100644 index 0000000..ad478ca --- /dev/null +++ b/test/documents/plotsjl/plotsjl_test_gr.md.ref @@ -0,0 +1,71 @@ + + +~~~~{.julia} +using Plots +gr() +x = linspace(0, 2*pi) +println(x) + +~~~~~~~~~~~~~ + + +~~~~ +linspace(0.0,6.283185307179586,50) +~~~~ + + + +~~~~{.julia} +p = plot(x, sin(x), size =(900,300)) +~~~~~~~~~~~~~ + + + + + + +~~~~{.julia} +julia> plot(x, sin(x)) + +~~~~~~~~~~~~~ + + +![](figures/plotsjl_test_gr_2_1.png)\ + + + + +~~~~{.julia} +plot(rand(100) / 3,reg=true,fill=(0,:green)) +scatter!(rand(100),markersize=6,c=:orange) +~~~~~~~~~~~~~ + + +![](figures/plotsjl_test_gr_3_1.png)\ + + + + +~~~~{.julia} +julia> plot(rand(100) / 3,reg=true,fill=(0,:green)) + + +~~~~~~~~~~~~~ + + +![](figures/plotsjl_test_gr_4_1.png)\ + + +~~~~{.julia} +julia> scatter!(rand(100),markersize=6,c=:orange) + +~~~~~~~~~~~~~ + + +![](figures/plotsjl_test_gr_4_2.png)\ + + + + + +![A random walk.](figures/plotsjl_test_gr_random_1.png) diff --git a/test/documents/plotsjl_test_gr.jmd b/test/documents/plotsjl_test_gr.jmd new file mode 100644 index 0000000..914d202 --- /dev/null +++ b/test/documents/plotsjl_test_gr.jmd @@ -0,0 +1,29 @@ + + +```julia +using Plots +gr() +x = linspace(0, 2*pi) +println(x) +p = plot(x, sin(x), size =(900,300)) +``` + + +```julia; term=true +plot(x, sin(x)) +``` + +```julia +plot(rand(100) / 3,reg=true,fill=(0,:green)) +scatter!(rand(100),markersize=6,c=:orange) +``` + +```julia; term=true +plot(rand(100) / 3,reg=true,fill=(0,:green)) +scatter!(rand(100),markersize=6,c=:orange) +``` + + +```{julia;echo=false; fig_cap="A random walk."; label="random"} +plot(cumsum(randn(1000, 1))) +``` diff --git a/test/plotsjl_test.jl b/test/plotsjl_test.jl index c354f5e..85b6ab2 100644 --- a/test/plotsjl_test.jl +++ b/test/plotsjl_test.jl @@ -10,3 +10,5 @@ end pljtest("plotsjl_test.jmd", "plotsjl_test.md", "pandoc") pljtest("plotsjl_test.jmd", "plotsjl_test.tex", "tex") + +pljtest("plotsjl_test_gr.jmd", "plotsjl_test_gr.md", "pandoc")