supportedGraphs utils and pngs; removed args/kwargs from defaults
This commit is contained in:
parent
a0455561b6
commit
8a9b3286e9
@ -180,13 +180,11 @@ Some keyword arguments you can set:
|
||||
Keyword | Default | Type | Aliases
|
||||
---- | ---- | ---- | ----
|
||||
`:annotation` | `nothing` | Series | `:ann`, `:annotate`, `:annotations`, `:anns`
|
||||
`:args` | `Any[]` | Series | `:argss`
|
||||
`:axis` | `left` | Series | `:axiss`
|
||||
`:color` | `auto` | Series | `:c`, `:colors`
|
||||
`:fillto` | `nothing` | Series | `:area`, `:fill`, `:filltos`
|
||||
`:group` | `nothing` | Series | `:g`, `:groups`
|
||||
`:heatmap_c` | `(0.15,0.5)` | Series | `:heatmap_cs`
|
||||
`:kwargs` | `Any[]` | Series | `:kwargss`
|
||||
`:label` | `AUTO` | Series | `:lab`, `:labels`
|
||||
`:linestyle` | `solid` | Series | `:linestyles`, `:ls`, `:s`, `:style`
|
||||
`:linetype` | `path` | Series | `:linetypes`, `:lt`, `:t`, `:type`
|
||||
|
||||
File diff suppressed because one or more lines are too long
BIN
img/supported/Plots.supportGraphArgs.png
Normal file
BIN
img/supported/Plots.supportGraphArgs.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
BIN
img/supported/Plots.supportGraphAxes.png
Normal file
BIN
img/supported/Plots.supportGraphAxes.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.7 KiB |
BIN
img/supported/Plots.supportGraphMarkers.png
Normal file
BIN
img/supported/Plots.supportGraphMarkers.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
BIN
img/supported/Plots.supportGraphStyles.png
Normal file
BIN
img/supported/Plots.supportGraphStyles.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.6 KiB |
BIN
img/supported/Plots.supportGraphTypes.png
Normal file
BIN
img/supported/Plots.supportGraphTypes.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
@ -106,9 +106,9 @@ _seriesDefaults[:reg] = false # regression line?
|
||||
_seriesDefaults[:group] = nothing
|
||||
_seriesDefaults[:ribbon] = nothing
|
||||
_seriesDefaults[:annotation] = nothing
|
||||
_seriesDefaults[:args] = [] # additional args to pass to the backend
|
||||
_seriesDefaults[:kwargs] = [] # additional keyword args to pass to the backend
|
||||
# note: can be Vector{Dict} or Vector{Tuple}
|
||||
# _seriesDefaults[:args] = [] # additional args to pass to the backend
|
||||
# _seriesDefaults[:kwargs] = [] # additional keyword args to pass to the backend
|
||||
# # note: can be Vector{Dict} or Vector{Tuple}
|
||||
|
||||
|
||||
const _plotDefaults = Dict{Symbol, Any}()
|
||||
|
||||
@ -10,7 +10,7 @@ gadfly() = backend(:gadfly)
|
||||
# supportedArgs(::GadflyPackage) = setdiff(_allArgs, [:heatmap_c, :pos, :screen, :yrightlabel])
|
||||
supportedArgs(::GadflyPackage) = [
|
||||
:annotation,
|
||||
:args,
|
||||
# :args,
|
||||
# :axis,
|
||||
:background_color,
|
||||
:color,
|
||||
@ -18,7 +18,7 @@ supportedArgs(::GadflyPackage) = [
|
||||
# :foreground_color,
|
||||
:group,
|
||||
# :heatmap_c,
|
||||
:kwargs,
|
||||
# :kwargs,
|
||||
:label,
|
||||
:layout,
|
||||
:legend,
|
||||
|
||||
@ -11,7 +11,7 @@ pyplot() = backend(:pyplot)
|
||||
# supportedArgs(::PyPlotPackage) = setdiff(_allArgs, [:reg, :heatmap_c, :fillto, :pos, :xlims, :ylims, :xticks, :yticks])
|
||||
supportedArgs(::PyPlotPackage) = [
|
||||
:annotation,
|
||||
:args,
|
||||
# :args,
|
||||
:axis,
|
||||
:background_color,
|
||||
:color,
|
||||
@ -19,7 +19,7 @@ supportedArgs(::PyPlotPackage) = [
|
||||
:foreground_color,
|
||||
:group,
|
||||
# :heatmap_c,
|
||||
:kwargs,
|
||||
# :kwargs,
|
||||
:label,
|
||||
:layout,
|
||||
:legend,
|
||||
|
||||
@ -13,7 +13,7 @@ export [pkgname]
|
||||
# supportedArgs(::[PkgName]Package) = _allArgs
|
||||
supportedArgs(::[PkgName]Package) = [
|
||||
:annotation,
|
||||
:args,
|
||||
# :args,
|
||||
:axis,
|
||||
:background_color,
|
||||
:color,
|
||||
@ -21,7 +21,7 @@ supportedArgs(::[PkgName]Package) = [
|
||||
:foreground_color,
|
||||
:group,
|
||||
# :heatmap_c,
|
||||
:kwargs,
|
||||
# :kwargs,
|
||||
:label,
|
||||
:layout,
|
||||
:legend,
|
||||
|
||||
15
src/utils.jl
15
src/utils.jl
@ -212,12 +212,12 @@ extendSeriesData(v::AVec, z::AVec) = (append!(v, z); v)
|
||||
# ---------------------------------------------------------------
|
||||
|
||||
function supportGraph(allvals, func)
|
||||
vals = reverse(allvals)
|
||||
vals = reverse(sort(allvals))
|
||||
x = ASCIIString[]
|
||||
y = ASCIIString[]
|
||||
for b in backends()
|
||||
supported = func(Plots.backendInstance(b))
|
||||
for val in vals
|
||||
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))
|
||||
@ -233,6 +233,13 @@ supportGraphStyles() = supportGraph(_allStyles, supportedStyles)
|
||||
supportGraphMarkers() = supportGraph(_allMarkers, supportedMarkers)
|
||||
supportGraphAxes() = supportGraph(_allAxes, supportedAxes)
|
||||
|
||||
function dumpSupportGraphs()
|
||||
for func in (supportGraphArgs, supportGraphTypes, supportGraphStyles, supportGraphMarkers, supportGraphAxes)
|
||||
plt = func()
|
||||
png(IMG_DIR * "/supported/$(string(func))")
|
||||
end
|
||||
end
|
||||
|
||||
# ---------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user