tests
This commit is contained in:
parent
55a85cdaaf
commit
f80d6bdfc6
16
src/args.jl
16
src/args.jl
@ -55,19 +55,3 @@ function getPlotKeywordArgs(kw, i::Int)
|
|||||||
kw
|
kw
|
||||||
end
|
end
|
||||||
|
|
||||||
# const DEFAULT_axis = LINE_AXES[1]
|
|
||||||
# const DEFAULT_color = :auto
|
|
||||||
# const DEFAULT_label = "AUTO"
|
|
||||||
# const DEFAULT_width = 2
|
|
||||||
# const DEFAULT_linetype = LINE_TYPES[1]
|
|
||||||
# const DEFAULT_linestyle = LINE_STYLES[1]
|
|
||||||
# const DEFAULT_marker = LINE_MARKERS[1]
|
|
||||||
# const DEFAULT_markercolor = :auto
|
|
||||||
# const DEFAULT_markersize = 10
|
|
||||||
# const DEFAULT_heatmap_n = 100
|
|
||||||
# const DEFAULT_heatmap_c = (0.15, 0.5)
|
|
||||||
|
|
||||||
# const DEFAULT_title = ""
|
|
||||||
# const DEFAULT_xlabel = ""
|
|
||||||
# const DEFAULT_ylabel = ""
|
|
||||||
# const DEFAULT_yrightlabel = ""
|
|
||||||
|
|||||||
@ -25,12 +25,30 @@ facts("Qwt") do
|
|||||||
|
|
||||||
# plot(x::AVec, y::AMat; kw...) # multiple lines (one per column of x), all sharing x (will assert length(x) == size(y,1))
|
# plot(x::AVec, y::AMat; kw...) # multiple lines (one per column of x), all sharing x (will assert length(x) == size(y,1))
|
||||||
@fact plot(sort(rand(10)), rand(Int, 10, 3)) --> not(nothing)
|
@fact plot(sort(rand(10)), rand(Int, 10, 3)) --> not(nothing)
|
||||||
|
@fact_throws(plot!(rand(10), rand(9,2)))
|
||||||
|
|
||||||
# plot(x::AMat, y::AMat; kw...) # multiple lines (one per column of x/y... will assert size(x) == size(y))
|
# plot(x::AMat, y::AMat; kw...) # multiple lines (one per column of x/y... will assert size(x) == size(y))
|
||||||
|
@fact plot!(rand(10,3), rand(10,3)) --> not(nothing)
|
||||||
|
@fact_throws plot!(rand(10,3), rand(10,2))
|
||||||
|
|
||||||
# plot(x::AVec, f::Function; kw...) # one line, y = f(x)
|
# plot(x::AVec, f::Function; kw...) # one line, y = f(x)
|
||||||
|
@fact plot(1:10, sin) --> not(nothing)
|
||||||
|
@fact currentPlot().o.lines[1].y --> sin(collect(1:10))
|
||||||
|
|
||||||
# plot(x::AMat, f::Function; kw...) # multiple lines, yᵢⱼ = f(xᵢⱼ)
|
# plot(x::AMat, f::Function; kw...) # multiple lines, yᵢⱼ = f(xᵢⱼ)
|
||||||
|
@fact plot(rand(10,2), sin) --> not(nothing)
|
||||||
|
@fact length(currentPlot().o.lines) --> 2
|
||||||
|
|
||||||
# plot(x::AVec, fs::AVec{Function}; kw...) # multiple lines, yᵢⱼ = fⱼ(xᵢ)
|
# plot(x::AVec, fs::AVec{Function}; kw...) # multiple lines, yᵢⱼ = fⱼ(xᵢ)
|
||||||
|
@fact plot(1:10, Function[sin,cos]) --> not(nothing)
|
||||||
|
@fact currentPlot().o.lines[1].y --> sin(collect(1:10))
|
||||||
|
@fact currentPlot().o.lines[1].y --> cos(collect(1:10))
|
||||||
|
|
||||||
# plot(y::AVec{AVec}; kw...) # multiple lines, each with x = 1:length(y[i])
|
# plot(y::AVec{AVec}; kw...) # multiple lines, each with x = 1:length(y[i])
|
||||||
|
@fact plot((11:20, rand(10))) --> not(nothing)
|
||||||
|
@fact currentPlot().o.lines[1].x[4] --> 4
|
||||||
|
@fact currentPlot().o.lines[1].y[4] --> 14
|
||||||
|
|
||||||
# plot(x::AVec, y::AVec{AVec}; kw...) # multiple lines, will assert length(x) == length(y[i])
|
# plot(x::AVec, y::AVec{AVec}; kw...) # multiple lines, will assert length(x) == length(y[i])
|
||||||
# plot(x::AVec{AVec}, y::AVec{AVec}; kw...) # multiple lines, will assert length(x[i]) == length(y[i])
|
# plot(x::AVec{AVec}, y::AVec{AVec}; kw...) # multiple lines, will assert length(x[i]) == length(y[i])
|
||||||
# plot(n::Integer; kw...) # n lines, all empty (for updating plots)
|
# plot(n::Integer; kw...) # n lines, all empty (for updating plots)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user