supported graphs

This commit is contained in:
Thomas Breloff 2015-09-29 14:27:18 -04:00
parent d68fe5f80d
commit 443df0501d
4 changed files with 24 additions and 15 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

View File

@ -74,8 +74,8 @@ supportedArgs(::WinstonPackage) = [
] ]
supportedAxes(::WinstonPackage) = [:auto, :left] supportedAxes(::WinstonPackage) = [:auto, :left]
supportedTypes(::WinstonPackage) = [:none, :line, :path, :sticks, :scatter, :hist, :bar] supportedTypes(::WinstonPackage) = [:none, :line, :path, :sticks, :scatter, :hist, :bar]
supportedStyles(::WinstonPackage) = intersect(_allStyles, collect(keys(winston_linestyle))) supportedStyles(::WinstonPackage) = [:auto, :solid, :dash, :dot, :dashdot] # intersect(_allStyles, collect(keys(winston_linestyle)))
supportedMarkers(::WinstonPackage) = intersect(_allMarkers, collect(keys(winston_marker))) supportedMarkers(::WinstonPackage) = [:none, :auto, :rect, :ellipse, :diamond, :utriangle, :dtriangle, :cross, :xcross, :star1] # intersect(_allMarkers, collect(keys(winston_marker)))
subplotSupported(::WinstonPackage) = false subplotSupported(::WinstonPackage) = false

View File

@ -213,10 +213,11 @@ extendSeriesData(v::AVec, z::AVec) = (append!(v, z); v)
function supportGraph(allvals, func) function supportGraph(allvals, func)
vals = reverse(sort(allvals)) vals = reverse(sort(allvals))
bs = sort(backends())
x = ASCIIString[] x = ASCIIString[]
y = ASCIIString[] y = ASCIIString[]
for val in vals for val in vals
for b in sort(backends()) for b in bs
supported = func(Plots.backendInstance(b)) supported = func(Plots.backendInstance(b))
if val in supported if val in supported
push!(x, string(b)) push!(x, string(b))
@ -224,7 +225,15 @@ function supportGraph(allvals, func)
end end
end end
end end
scatter(x,y, m=:rect, ms=10, size=(300,100+18*length(vals)), leg=false) n = length(vals)
scatter(x,y,
m=:rect,
ms=10,
size=(300,100+18*n),
# xticks=(collect(1:length(bs)), bs),
leg=false
)
end end
supportGraphArgs() = supportGraph(_allArgs, supportedArgs) supportGraphArgs() = supportGraph(_allArgs, supportedArgs)