mirror of https://github.com/mpastell/Weave.jl
Add test for Plots+GR
parent
434d5d4286
commit
1753da1016
|
@ -3,5 +3,6 @@ Cairo
|
|||
Gadfly
|
||||
PyPlot
|
||||
#Winston
|
||||
GR
|
||||
DSP
|
||||
Plots
|
||||
|
|
|
@ -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)
|
|
@ -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)))
|
||||
```
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue