fixes, examples, and readme; also deprecated winston
@ -18,4 +18,4 @@ script:
|
|||||||
- julia -e 'ENV["PYTHON"] = ""; Pkg.clone("PyPlot"); Pkg.build("PyPlot")'
|
- julia -e 'ENV["PYTHON"] = ""; Pkg.clone("PyPlot"); Pkg.build("PyPlot")'
|
||||||
- julia -e 'Pkg.clone(pwd()); Pkg.build("Plots")'
|
- julia -e 'Pkg.clone(pwd()); Pkg.build("Plots")'
|
||||||
- julia -e 'Pkg.test("Plots"; coverage=true)'
|
- julia -e 'Pkg.test("Plots"; coverage=true)'
|
||||||
- julia -e 'cd(Pkg.dir("Plots")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())'
|
# - julia -e 'cd(Pkg.dir("Plots")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())'
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
[](http://pkg.julialang.org/?pkg=Plots&ver=0.3)
|
[](http://pkg.julialang.org/?pkg=Plots&ver=0.3)
|
||||||
[](http://pkg.julialang.org/?pkg=Plots&ver=0.4)
|
[](http://pkg.julialang.org/?pkg=Plots&ver=0.4)
|
||||||
<!-- [](https://coveralls.io/r/tbreloff/Plots.jl?branch=master) -->
|
<!-- [](https://coveralls.io/r/tbreloff/Plots.jl?branch=master) -->
|
||||||
[](http://codecov.io/github/tbreloff/Plots.jl?branch=master)
|
<!-- [](http://codecov.io/github/tbreloff/Plots.jl?branch=master) -->
|
||||||
|
|
||||||
#### Author: Thomas Breloff (@tbreloff)
|
#### Author: Thomas Breloff (@tbreloff)
|
||||||
|
|
||||||
@ -28,7 +28,6 @@ Please add wishlist items, bugs, or any other comments/questions to the issues l
|
|||||||
- [PyPlot.jl](docs/pyplot_examples.md)
|
- [PyPlot.jl](docs/pyplot_examples.md)
|
||||||
- [UnicodePlots.jl](docs/unicodeplots_examples.md)
|
- [UnicodePlots.jl](docs/unicodeplots_examples.md)
|
||||||
- [Qwt.jl](docs/qwt_examples.md)
|
- [Qwt.jl](docs/qwt_examples.md)
|
||||||
- [Winston.jl](docs/winston_examples.md)
|
|
||||||
|
|
||||||
Also check out the many [IJulia notebooks](http://nbviewer.ipython.org/github/tbreloff/Plots.jl/tree/master/examples/) with many examples.
|
Also check out the many [IJulia notebooks](http://nbviewer.ipython.org/github/tbreloff/Plots.jl/tree/master/examples/) with many examples.
|
||||||
|
|
||||||
@ -54,7 +53,6 @@ Pkg.add("Immerse")
|
|||||||
Pkg.add("PyPlot")
|
Pkg.add("PyPlot")
|
||||||
Pkg.add("UnicodePlots")
|
Pkg.add("UnicodePlots")
|
||||||
Pkg.clone("https://github.com/tbreloff/Qwt.jl.git")
|
Pkg.clone("https://github.com/tbreloff/Qwt.jl.git")
|
||||||
Pkg.add("Winston")
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Use
|
## Use
|
||||||
@ -384,7 +382,7 @@ Animations are created in 3 steps (see example #2):
|
|||||||
- [x] PyPlot.jl
|
- [x] PyPlot.jl
|
||||||
- [x] UnicodePlots.jl
|
- [x] UnicodePlots.jl
|
||||||
- [x] Qwt.jl
|
- [x] Qwt.jl
|
||||||
- [x] Winston.jl
|
- [x] Winston.jl (deprecated)
|
||||||
- [ ] GLPlot.jl
|
- [ ] GLPlot.jl
|
||||||
- [ ] Bokeh.jl
|
- [ ] Bokeh.jl
|
||||||
- [ ] Vega.jl
|
- [ ] Vega.jl
|
||||||
|
|||||||
@ -12,7 +12,7 @@ gadfly()
|
|||||||
A simple line plot of the columns.
|
A simple line plot of the columns.
|
||||||
|
|
||||||
```julia
|
```julia
|
||||||
plot(fakedata(50,5),w=3)
|
plot(Plots.fakedata(50,5),w=3)
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
@ -28,8 +28,8 @@ Easily build animations. (`convert` or `ffmpeg` must be available to generate t
|
|||||||
```julia
|
```julia
|
||||||
p = plot([sin,cos],zeros(0),leg=false)
|
p = plot([sin,cos],zeros(0),leg=false)
|
||||||
anim = Animation()
|
anim = Animation()
|
||||||
for x = linspace(0,10π,200) # /Users/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 43:
|
for x = linspace(0,10π,200) # /home/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 35:
|
||||||
push!(p,x,Float64[sin(x),cos(x)]) # /Users/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 44:
|
push!(p,x,Float64[sin(x),cos(x)]) # /home/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 36:
|
||||||
frame(anim)
|
frame(anim)
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
@ -41,7 +41,7 @@ end
|
|||||||
Plot function pair (x(u), y(u)).
|
Plot function pair (x(u), y(u)).
|
||||||
|
|
||||||
```julia
|
```julia
|
||||||
plot(sin,(x->begin # /Users/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 50:
|
plot(sin,(x->begin # /home/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 42:
|
||||||
sin(2x)
|
sin(2x)
|
||||||
end),0,2π,line=4,leg=false,fill=(0,:orange))
|
end),0,2π,line=4,leg=false,fill=(0,:orange))
|
||||||
```
|
```
|
||||||
@ -201,7 +201,7 @@ subplot(randn(100,5),layout=[1,1,3],t=[:line :hist :scatter :step :bar],nbins=10
|
|||||||
Note here the automatic grid layout, as well as the order in which new series are added to the plots.
|
Note here the automatic grid layout, as well as the order in which new series are added to the plots.
|
||||||
|
|
||||||
```julia
|
```julia
|
||||||
subplot(fakedata(100,10),n=4,palette=[:grays :blues :heat :lightrainbow],bg=[:orange :pink :darkblue :black])
|
subplot(Plots.fakedata(100,10),n=4,palette=[:grays :blues :heat :lightrainbow],bg=[:orange :pink :darkblue :black])
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
@ -211,7 +211,7 @@ subplot(fakedata(100,10),n=4,palette=[:grays :blues :heat :lightrainbow],bg=[:or
|
|||||||
|
|
||||||
|
|
||||||
```julia
|
```julia
|
||||||
subplot!(fakedata(100,10))
|
subplot!(Plots.fakedata(100,10))
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
@ -246,4 +246,4 @@ plot(0.1:0.2:0.9,0.7 * rand(5) + 0.15,l=(3,:dash,:lightblue),m=(Shape(verts),30,
|
|||||||
- Supported values for marker: `:Plots.Shape`, `:auto`, `:cross`, `:diamond`, `:dtriangle`, `:ellipse`, `:heptagon`, `:hexagon`, `:none`, `:octagon`, `:pentagon`, `:rect`, `:star4`, `:star5`, `:star6`, `:star7`, `:star8`, `:utriangle`, `:xcross`
|
- Supported values for marker: `:Plots.Shape`, `:auto`, `:cross`, `:diamond`, `:dtriangle`, `:ellipse`, `:heptagon`, `:hexagon`, `:none`, `:octagon`, `:pentagon`, `:rect`, `:star4`, `:star5`, `:star6`, `:star7`, `:star8`, `:utriangle`, `:xcross`
|
||||||
- Is `subplot`/`subplot!` supported? Yes
|
- Is `subplot`/`subplot!` supported? Yes
|
||||||
|
|
||||||
(Automatically generated: 2015-10-18T00:56:22)
|
(Automatically generated: 2015-10-26T13:59:43)
|
||||||
@ -12,7 +12,7 @@ pyplot()
|
|||||||
A simple line plot of the columns.
|
A simple line plot of the columns.
|
||||||
|
|
||||||
```julia
|
```julia
|
||||||
plot(fakedata(50,5),w=3)
|
plot(Plots.fakedata(50,5),w=3)
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
@ -28,8 +28,8 @@ Easily build animations. (`convert` or `ffmpeg` must be available to generate t
|
|||||||
```julia
|
```julia
|
||||||
p = plot([sin,cos],zeros(0),leg=false)
|
p = plot([sin,cos],zeros(0),leg=false)
|
||||||
anim = Animation()
|
anim = Animation()
|
||||||
for x = linspace(0,10π,200) # /Users/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 43:
|
for x = linspace(0,10π,200) # /home/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 35:
|
||||||
push!(p,x,Float64[sin(x),cos(x)]) # /Users/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 44:
|
push!(p,x,Float64[sin(x),cos(x)]) # /home/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 36:
|
||||||
frame(anim)
|
frame(anim)
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
@ -41,7 +41,7 @@ end
|
|||||||
Plot function pair (x(u), y(u)).
|
Plot function pair (x(u), y(u)).
|
||||||
|
|
||||||
```julia
|
```julia
|
||||||
plot(sin,(x->begin # /Users/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 50:
|
plot(sin,(x->begin # /home/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 42:
|
||||||
sin(2x)
|
sin(2x)
|
||||||
end),0,2π,line=4,leg=false,fill=(0,:orange))
|
end),0,2π,line=4,leg=false,fill=(0,:orange))
|
||||||
```
|
```
|
||||||
@ -201,7 +201,7 @@ subplot(randn(100,5),layout=[1,1,3],t=[:line :hist :scatter :step :bar],nbins=10
|
|||||||
Note here the automatic grid layout, as well as the order in which new series are added to the plots.
|
Note here the automatic grid layout, as well as the order in which new series are added to the plots.
|
||||||
|
|
||||||
```julia
|
```julia
|
||||||
subplot(fakedata(100,10),n=4,palette=[:grays :blues :heat :lightrainbow],bg=[:orange :pink :darkblue :black])
|
subplot(Plots.fakedata(100,10),n=4,palette=[:grays :blues :heat :lightrainbow],bg=[:orange :pink :darkblue :black])
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
@ -211,7 +211,7 @@ subplot(fakedata(100,10),n=4,palette=[:grays :blues :heat :lightrainbow],bg=[:or
|
|||||||
|
|
||||||
|
|
||||||
```julia
|
```julia
|
||||||
subplot!(fakedata(100,10))
|
subplot!(Plots.fakedata(100,10))
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
@ -246,4 +246,4 @@ plot(0.1:0.2:0.9,0.7 * rand(5) + 0.15,l=(3,:dash,:lightblue),m=(Shape(verts),30,
|
|||||||
- Supported values for marker: `:Plots.Shape`, `:auto`, `:cross`, `:diamond`, `:dtriangle`, `:ellipse`, `:heptagon`, `:hexagon`, `:none`, `:octagon`, `:pentagon`, `:rect`, `:star4`, `:star5`, `:star6`, `:star7`, `:star8`, `:utriangle`, `:xcross`
|
- Supported values for marker: `:Plots.Shape`, `:auto`, `:cross`, `:diamond`, `:dtriangle`, `:ellipse`, `:heptagon`, `:hexagon`, `:none`, `:octagon`, `:pentagon`, `:rect`, `:star4`, `:star5`, `:star6`, `:star7`, `:star8`, `:utriangle`, `:xcross`
|
||||||
- Is `subplot`/`subplot!` supported? Yes
|
- Is `subplot`/`subplot!` supported? Yes
|
||||||
|
|
||||||
(Automatically generated: 2015-10-17T23:43:13)
|
(Automatically generated: 2015-10-26T14:00:57)
|
||||||
@ -12,7 +12,7 @@ qwt()
|
|||||||
A simple line plot of the columns.
|
A simple line plot of the columns.
|
||||||
|
|
||||||
```julia
|
```julia
|
||||||
plot(fakedata(50,5),w=3)
|
plot(Plots.fakedata(50,5),w=3)
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
@ -28,8 +28,8 @@ Easily build animations. (`convert` or `ffmpeg` must be available to generate t
|
|||||||
```julia
|
```julia
|
||||||
p = plot([sin,cos],zeros(0),leg=false)
|
p = plot([sin,cos],zeros(0),leg=false)
|
||||||
anim = Animation()
|
anim = Animation()
|
||||||
for x = linspace(0,10π,200) # /Users/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 43:
|
for x = linspace(0,10π,200) # /home/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 35:
|
||||||
push!(p,x,Float64[sin(x),cos(x)]) # /Users/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 44:
|
push!(p,x,Float64[sin(x),cos(x)]) # /home/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 36:
|
||||||
frame(anim)
|
frame(anim)
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
@ -41,7 +41,7 @@ end
|
|||||||
Plot function pair (x(u), y(u)).
|
Plot function pair (x(u), y(u)).
|
||||||
|
|
||||||
```julia
|
```julia
|
||||||
plot(sin,(x->begin # /Users/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 50:
|
plot(sin,(x->begin # /home/tom/.julia/v0.4/Plots/docs/example_generation.jl, line 42:
|
||||||
sin(2x)
|
sin(2x)
|
||||||
end),0,2π,line=4,leg=false,fill=(0,:orange))
|
end),0,2π,line=4,leg=false,fill=(0,:orange))
|
||||||
```
|
```
|
||||||
@ -201,7 +201,7 @@ subplot(randn(100,5),layout=[1,1,3],t=[:line :hist :scatter :step :bar],nbins=10
|
|||||||
Note here the automatic grid layout, as well as the order in which new series are added to the plots.
|
Note here the automatic grid layout, as well as the order in which new series are added to the plots.
|
||||||
|
|
||||||
```julia
|
```julia
|
||||||
subplot(fakedata(100,10),n=4,palette=[:grays :blues :heat :lightrainbow],bg=[:orange :pink :darkblue :black])
|
subplot(Plots.fakedata(100,10),n=4,palette=[:grays :blues :heat :lightrainbow],bg=[:orange :pink :darkblue :black])
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
@ -211,7 +211,7 @@ subplot(fakedata(100,10),n=4,palette=[:grays :blues :heat :lightrainbow],bg=[:or
|
|||||||
|
|
||||||
|
|
||||||
```julia
|
```julia
|
||||||
subplot!(fakedata(100,10))
|
subplot!(Plots.fakedata(100,10))
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
@ -235,4 +235,4 @@ annotate!([(5,y[5],text("this is #5",16,:red,:center)),(10,y[10],text("this is #
|
|||||||
- Supported values for marker: `:auto`, `:cross`, `:diamond`, `:dtriangle`, `:ellipse`, `:hexagon`, `:none`, `:rect`, `:star5`, `:star8`, `:utriangle`, `:xcross`
|
- Supported values for marker: `:auto`, `:cross`, `:diamond`, `:dtriangle`, `:ellipse`, `:hexagon`, `:none`, `:rect`, `:star5`, `:star8`, `:utriangle`, `:xcross`
|
||||||
- Is `subplot`/`subplot!` supported? Yes
|
- Is `subplot`/`subplot!` supported? Yes
|
||||||
|
|
||||||
(Automatically generated: 2015-10-18T00:40:24)
|
(Automatically generated: 2015-10-26T14:02:19)
|
||||||
@ -4,7 +4,7 @@
|
|||||||
[](http://pkg.julialang.org/?pkg=Plots&ver=0.3)
|
[](http://pkg.julialang.org/?pkg=Plots&ver=0.3)
|
||||||
[](http://pkg.julialang.org/?pkg=Plots&ver=0.4)
|
[](http://pkg.julialang.org/?pkg=Plots&ver=0.4)
|
||||||
<!-- [](https://coveralls.io/r/tbreloff/Plots.jl?branch=master) -->
|
<!-- [](https://coveralls.io/r/tbreloff/Plots.jl?branch=master) -->
|
||||||
[](http://codecov.io/github/tbreloff/Plots.jl?branch=master)
|
<!-- [](http://codecov.io/github/tbreloff/Plots.jl?branch=master) -->
|
||||||
|
|
||||||
#### Author: Thomas Breloff (@tbreloff)
|
#### Author: Thomas Breloff (@tbreloff)
|
||||||
|
|
||||||
@ -28,7 +28,6 @@ Please add wishlist items, bugs, or any other comments/questions to the issues l
|
|||||||
- [PyPlot.jl](docs/pyplot_examples.md)
|
- [PyPlot.jl](docs/pyplot_examples.md)
|
||||||
- [UnicodePlots.jl](docs/unicodeplots_examples.md)
|
- [UnicodePlots.jl](docs/unicodeplots_examples.md)
|
||||||
- [Qwt.jl](docs/qwt_examples.md)
|
- [Qwt.jl](docs/qwt_examples.md)
|
||||||
- [Winston.jl](docs/winston_examples.md)
|
|
||||||
|
|
||||||
Also check out the many [IJulia notebooks](http://nbviewer.ipython.org/github/tbreloff/Plots.jl/tree/master/examples/) with many examples.
|
Also check out the many [IJulia notebooks](http://nbviewer.ipython.org/github/tbreloff/Plots.jl/tree/master/examples/) with many examples.
|
||||||
|
|
||||||
@ -54,7 +53,6 @@ Pkg.add("Immerse")
|
|||||||
Pkg.add("PyPlot")
|
Pkg.add("PyPlot")
|
||||||
Pkg.add("UnicodePlots")
|
Pkg.add("UnicodePlots")
|
||||||
Pkg.clone("https://github.com/tbreloff/Qwt.jl.git")
|
Pkg.clone("https://github.com/tbreloff/Qwt.jl.git")
|
||||||
Pkg.add("Winston")
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Use
|
## Use
|
||||||
@ -282,7 +280,7 @@ Animations are created in 3 steps (see example #2):
|
|||||||
- [x] PyPlot.jl
|
- [x] PyPlot.jl
|
||||||
- [x] UnicodePlots.jl
|
- [x] UnicodePlots.jl
|
||||||
- [x] Qwt.jl
|
- [x] Qwt.jl
|
||||||
- [x] Winston.jl
|
- [x] Winston.jl (deprecated)
|
||||||
- [ ] GLPlot.jl
|
- [ ] GLPlot.jl
|
||||||
- [ ] Bokeh.jl
|
- [ ] Bokeh.jl
|
||||||
- [ ] Vega.jl
|
- [ ] Vega.jl
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 114 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 89 KiB |
|
Before Width: | Height: | Size: 2.6 MiB After Width: | Height: | Size: 2.6 MiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 178 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 2.3 MiB After Width: | Height: | Size: 2.2 MiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 565 KiB After Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 24 KiB |
18
src/args.jl
@ -583,11 +583,11 @@ getArgValue(v, idx) = v
|
|||||||
|
|
||||||
# given an argument key (k), we want to extract the argument value for this index.
|
# given an argument key (k), we want to extract the argument value for this index.
|
||||||
# if nothing is set (or container is empty), return the default.
|
# if nothing is set (or container is empty), return the default.
|
||||||
function setDictValue(d::Dict, k::Symbol, idx::Int, defaults::Dict)
|
function setDictValue(d_in::Dict, d_out::Dict, k::Symbol, idx::Int, defaults::Dict)
|
||||||
if haskey(d, k) && !(typeof(d[k]) <: @compat(Union{AbstractArray, Tuple}) && isempty(d[k]))
|
if haskey(d_in, k) && !(typeof(d_in[k]) <: @compat(Union{AbstractArray, Tuple}) && isempty(d_in[k]))
|
||||||
d[k] = getArgValue(d[k], idx)
|
d_out[k] = getArgValue(d_in[k], idx)
|
||||||
else
|
else
|
||||||
d[k] = defaults[k]
|
d_out[k] = defaults[k]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -595,11 +595,12 @@ end
|
|||||||
|
|
||||||
# build the argument dictionary for the plot
|
# build the argument dictionary for the plot
|
||||||
function getPlotArgs(pkg::PlottingPackage, kw, idx::Int)
|
function getPlotArgs(pkg::PlottingPackage, kw, idx::Int)
|
||||||
d = Dict(kw)
|
kwdict = Dict(kw)
|
||||||
|
d = Dict()
|
||||||
|
|
||||||
# add defaults?
|
# add defaults?
|
||||||
for k in keys(_plotDefaults)
|
for k in keys(_plotDefaults)
|
||||||
setDictValue(d, k, idx, _plotDefaults)
|
setDictValue(kwdict, d, k, idx, _plotDefaults)
|
||||||
end
|
end
|
||||||
|
|
||||||
for k in (:xscale, :yscale)
|
for k in (:xscale, :yscale)
|
||||||
@ -622,11 +623,12 @@ end
|
|||||||
|
|
||||||
# build the argument dictionary for a series
|
# build the argument dictionary for a series
|
||||||
function getSeriesArgs(pkg::PlottingPackage, initargs::Dict, kw, commandIndex::Int, plotIndex::Int, globalIndex::Int) # TODO, pass in initargs, not plt
|
function getSeriesArgs(pkg::PlottingPackage, initargs::Dict, kw, commandIndex::Int, plotIndex::Int, globalIndex::Int) # TODO, pass in initargs, not plt
|
||||||
d = Dict(kw)
|
kwdict = Dict(kw)
|
||||||
|
d = Dict()
|
||||||
|
|
||||||
# add defaults?
|
# add defaults?
|
||||||
for k in keys(_seriesDefaults)
|
for k in keys(_seriesDefaults)
|
||||||
setDictValue(d, k, commandIndex, _seriesDefaults)
|
setDictValue(kwdict, d, k, commandIndex, _seriesDefaults)
|
||||||
end
|
end
|
||||||
|
|
||||||
if haskey(_typeAliases, d[:linetype])
|
if haskey(_typeAliases, d[:linetype])
|
||||||
|
|||||||
@ -84,7 +84,6 @@ getfig(wrap::@compat(Union{PyPlotAxisWrapper,PyPlotFigWrapper})) = wrap.fig
|
|||||||
|
|
||||||
# get a reference to the correct axis
|
# get a reference to the correct axis
|
||||||
function getLeftAxis(wrap::PyPlotFigWrapper)
|
function getLeftAxis(wrap::PyPlotFigWrapper)
|
||||||
# @show wrap.fig.o[:axes]
|
|
||||||
axes = wrap.fig.o[:axes]
|
axes = wrap.fig.o[:axes]
|
||||||
if isempty(axes)
|
if isempty(axes)
|
||||||
return wrap.fig.o[:add_subplot](111)
|
return wrap.fig.o[:add_subplot](111)
|
||||||
@ -226,7 +225,6 @@ function plot!(pkg::PyPlotPackage, plt::Plot; kw...)
|
|||||||
|
|
||||||
extraargs[:linestyle] = getPyPlotLineStyle(lt, d[:linestyle])
|
extraargs[:linestyle] = getPyPlotLineStyle(lt, d[:linestyle])
|
||||||
extraargs[:marker] = getPyPlotMarker(d[:markershape])
|
extraargs[:marker] = getPyPlotMarker(d[:markershape])
|
||||||
dump(extraargs[:marker])
|
|
||||||
|
|
||||||
if lt == :scatter
|
if lt == :scatter
|
||||||
extraargs[:s] = d[:markersize]^2
|
extraargs[:s] = d[:markersize]^2
|
||||||
|
|||||||
@ -73,6 +73,7 @@ end
|
|||||||
function plot(pkg::QwtPackage; kw...)
|
function plot(pkg::QwtPackage; kw...)
|
||||||
d = Dict(kw)
|
d = Dict(kw)
|
||||||
fixcolors(d)
|
fixcolors(d)
|
||||||
|
dumpdict(d,"\n\n!!! plot")
|
||||||
o = Qwt.plot(zeros(0,0); d..., show=false)
|
o = Qwt.plot(zeros(0,0); d..., show=false)
|
||||||
plt = Plot(o, pkg, 0, d, Dict[])
|
plt = Plot(o, pkg, 0, d, Dict[])
|
||||||
plt
|
plt
|
||||||
@ -81,6 +82,7 @@ end
|
|||||||
function plot!(::QwtPackage, plt::Plot; kw...)
|
function plot!(::QwtPackage, plt::Plot; kw...)
|
||||||
d = adjustQwtKeywords(plt, false; kw...)
|
d = adjustQwtKeywords(plt, false; kw...)
|
||||||
fixcolors(d)
|
fixcolors(d)
|
||||||
|
dumpdict(d,"\n\n!!! plot!")
|
||||||
Qwt.oplot(plt.o; d...)
|
Qwt.oplot(plt.o; d...)
|
||||||
push!(plt.seriesargs, d)
|
push!(plt.seriesargs, d)
|
||||||
plt
|
plt
|
||||||
|
|||||||
@ -49,7 +49,7 @@ subplot!(pkg::PlottingPackage, subplt::Subplot; kw...) = error("subplot!($pkg, s
|
|||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
const BACKENDS = [:qwt, :gadfly, :unicodeplots, :pyplot, :immerse, :winston]
|
const BACKENDS = [:qwt, :gadfly, :unicodeplots, :pyplot, :immerse]
|
||||||
const INITIALIZED_BACKENDS = Set{Symbol}()
|
const INITIALIZED_BACKENDS = Set{Symbol}()
|
||||||
backends() = BACKENDS
|
backends() = BACKENDS
|
||||||
|
|
||||||
@ -184,6 +184,7 @@ function backend()
|
|||||||
end
|
end
|
||||||
|
|
||||||
elseif currentBackendSymbol == :winston
|
elseif currentBackendSymbol == :winston
|
||||||
|
warn("Winston support is deprecated and broken. Try another backend: $BACKENDS")
|
||||||
try
|
try
|
||||||
@eval ENV["WINSTON_OUTPUT"] = "gtk"
|
@eval ENV["WINSTON_OUTPUT"] = "gtk"
|
||||||
@eval import Winston, Gtk
|
@eval import Winston, Gtk
|
||||||
|
|||||||