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

@ -212,19 +212,28 @@ 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))
x = ASCIIString[] bs = sort(backends())
y = ASCIIString[] x = ASCIIString[]
for val in vals y = ASCIIString[]
for b in sort(backends()) for val in vals
supported = func(Plots.backendInstance(b)) for b in bs
if val in supported supported = func(Plots.backendInstance(b))
push!(x, string(b)) if val in supported
push!(y, string(val)) push!(x, string(b))
end push!(y, string(val))
end end
end end
scatter(x,y, m=:rect, ms=10, size=(300,100+18*length(vals)), leg=false) end
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)