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]
supportedTypes(::WinstonPackage) = [:none, :line, :path, :sticks, :scatter, :hist, :bar]
supportedStyles(::WinstonPackage) = intersect(_allStyles, collect(keys(winston_linestyle)))
supportedMarkers(::WinstonPackage) = intersect(_allMarkers, collect(keys(winston_marker)))
supportedStyles(::WinstonPackage) = [:auto, :solid, :dash, :dot, :dashdot] # intersect(_allStyles, collect(keys(winston_linestyle)))
supportedMarkers(::WinstonPackage) = [:none, :auto, :rect, :ellipse, :diamond, :utriangle, :dtriangle, :cross, :xcross, :star1] # intersect(_allMarkers, collect(keys(winston_marker)))
subplotSupported(::WinstonPackage) = false

View File

@ -212,19 +212,28 @@ extendSeriesData(v::AVec, z::AVec) = (append!(v, z); v)
# ---------------------------------------------------------------
function supportGraph(allvals, func)
vals = reverse(sort(allvals))
x = ASCIIString[]
y = ASCIIString[]
for val in vals
for b in sort(backends())
supported = func(Plots.backendInstance(b))
if val in supported
push!(x, string(b))
push!(y, string(val))
end
end
end
scatter(x,y, m=:rect, ms=10, size=(300,100+18*length(vals)), leg=false)
vals = reverse(sort(allvals))
bs = sort(backends())
x = ASCIIString[]
y = ASCIIString[]
for val in vals
for b in bs
supported = func(Plots.backendInstance(b))
if val in supported
push!(x, string(b))
push!(y, string(val))
end
end
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
supportGraphArgs() = supportGraph(_allArgs, supportedArgs)