readme
This commit is contained in:
parent
ba13ab9926
commit
76d1e26f7d
58
README.md
58
README.md
@ -157,36 +157,36 @@ ohlc!(args...; kw...) = plot!(args...; kw..., linetype = :ohlc)
|
|||||||
|
|
||||||
Some keyword arguments you can set:
|
Some keyword arguments you can set:
|
||||||
|
|
||||||
Keyword | Default Value | Aliases | Applies To
|
Keyword | Default | Type | Aliases
|
||||||
---- | ---- | ---- | ----
|
---- | ---- | ---- | ----
|
||||||
args | Any[] | [:args,:argss] | Series
|
args | Any[] | Series | `:args`, `:argss`
|
||||||
axis | left | [:axis,:axiss] | Series
|
axis | left | Series | `:axis`, `:axiss`
|
||||||
color | auto | [:c,:color,:colors] | Series
|
color | auto | Series | `:c`, `:color`, `:colors`
|
||||||
fillto | nothing | [:area,:fill,:fillto,:filltos] | Series
|
fillto | nothing | Series | `:area`, `:fill`, `:fillto`, `:filltos`
|
||||||
group | nothing | [:g,:group,:groups] | Series
|
group | nothing | Series | `:g`, `:group`, `:groups`
|
||||||
heatmap_c | (0.15,0.5) | [:heatmap_c,:heatmap_cs] | Series
|
heatmap_c | (0.15,0.5) | Series | `:heatmap_c`, `:heatmap_cs`
|
||||||
kwargs | Any[] | [:kwargs,:kwargss] | Series
|
kwargs | Any[] | Series | `:kwargs`, `:kwargss`
|
||||||
label | AUTO | [:lab,:label,:labels] | Series
|
label | AUTO | Series | `:lab`, `:label`, `:labels`
|
||||||
linestyle | solid | [:linestyle,:linestyles,:ls,:s,:style] | Series
|
linestyle | solid | Series | `:linestyle`, `:linestyles`, `:ls`, `:s`, `:style`
|
||||||
linetype | path | [:linetype,:linetypes,:lt,:t,:type] | Series
|
linetype | path | Series | `:linetype`, `:linetypes`, `:lt`, `:t`, `:type`
|
||||||
marker | none | [:m,:marker,:markers] | Series
|
marker | none | Series | `:m`, `:marker`, `:markers`
|
||||||
markercolor | match | [:markercolor,:markercolors,:mc,:mcolor] | Series
|
markercolor | match | Series | `:markercolor`, `:markercolors`, `:mc`, `:mcolor`
|
||||||
markersize | 6 | [:markersize,:markersizes,:ms,:msize] | Series
|
markersize | 6 | Series | `:markersize`, `:markersizes`, `:ms`, `:msize`
|
||||||
nbins | 100 | [:nb,:nbin,:nbins,:nbinss] | Series
|
nbins | 100 | Series | `:nb`, `:nbin`, `:nbins`, `:nbinss`
|
||||||
reg | false | [:reg,:regs] | Series
|
reg | false | Series | `:reg`, `:regs`
|
||||||
ribbon | nothing | [:r,:ribbon,:ribbons] | Series
|
ribbon | nothing | Series | `:r`, `:ribbon`, `:ribbons`
|
||||||
width | 1 | [:linewidth,:w,:width,:widths] | Series
|
width | 1 | Series | `:linewidth`, `:w`, `:width`, `:widths`
|
||||||
background_color | RGB{Float64}(0.1,0.1,0.1) | [:background,:background_color,:bg,:bg_color,:bgcolor] | Plot
|
background_color | RGB{Float64}(0.1,0.1,0.1) | Plot | `:background`, `:background_color`, `:bg`, `:bg_color`, `:bgcolor`
|
||||||
legend | true | [:leg,:legend] | Plot
|
legend | true | Plot | `:leg`, `:legend`
|
||||||
show | false | [:display,:show] | Plot
|
show | false | Plot | `:display`, `:show`
|
||||||
size | (800,600) | [:size,:windowsize,:wsize] | Plot
|
size | (800,600) | Plot | `:size`, `:windowsize`, `:wsize`
|
||||||
title | | [:title] | Plot
|
title | | Plot | `:title`
|
||||||
windowtitle | Plots.jl | [:windowtitle,:wtitle] | Plot
|
windowtitle | Plots.jl | Plot | `:windowtitle`, `:wtitle`
|
||||||
xlabel | | [:xlab,:xlabel] | Plot
|
xlabel | | Plot | `:xlab`, `:xlabel`
|
||||||
xticks | true | [:xticks] | Plot
|
xticks | true | Plot | `:xticks`
|
||||||
ylabel | | [:ylab,:ylabel] | Plot
|
ylabel | | Plot | `:ylab`, `:ylabel`
|
||||||
yrightlabel | | [:y2lab,:y2label,:ylab2,:ylabel2,:ylabelright,:ylabr,:yrightlabel,:yrlab] | Plot
|
yrightlabel | | Plot | `:y2lab`, `:y2label`, `:ylab2`, `:ylabel2`, `:ylabelright`, `:ylabr`, `:yrightlabel`, `:yrlab`
|
||||||
yticks | true | [:yticks] | Plot
|
yticks | true | Plot | `:yticks`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -218,10 +218,11 @@ function buildReadme()
|
|||||||
readme = readall("$DOCDIR/readme_template.md")
|
readme = readall("$DOCDIR/readme_template.md")
|
||||||
|
|
||||||
# build keyword arg table
|
# build keyword arg table
|
||||||
kwtable = "Keyword | Default Value | Aliases | Applies To\n---- | ---- | ---- | ----\n"
|
kwtable = "Keyword | Default | Type | Aliases \n---- | ---- | ---- | ----\n"
|
||||||
for d in (Plots._seriesDefaults, Plots._plotDefaults)
|
for d in (Plots._seriesDefaults, Plots._plotDefaults)
|
||||||
for k in sort(collect(keys(d)))
|
for k in sort(collect(keys(d)))
|
||||||
kwtable = string(kwtable, "$k | $(d[k]) | $(aliases(Plots._keyAliases, k)) | $(d==Plots._seriesDefaults ? "Series" : "Plot") \n")
|
aliasstr = createStringOfMarkDownSymbols(aliases(Plots._keyAliases, k))
|
||||||
|
kwtable = string(kwtable, "$k | $(d[k]) | $(d==Plots._seriesDefaults ? "Series" : "Plot") | $aliasstr \n")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
readme = replace(readme, "[[KEYWORD_ARGS_TABLE]]", kwtable)
|
readme = replace(readme, "[[KEYWORD_ARGS_TABLE]]", kwtable)
|
||||||
|
|||||||
@ -149,7 +149,8 @@ function aliasesAndAutopick(d::Dict, sym::Symbol, aliases::Dict, options::AVec,
|
|||||||
end
|
end
|
||||||
|
|
||||||
function aliases(aliasMap::Dict, val)
|
function aliases(aliasMap::Dict, val)
|
||||||
sort(vcat(val, collect(keys(filter((k,v)-> v==val, aliasMap)))))
|
# sort(vcat(val, collect(keys(filter((k,v)-> v==val, aliasMap)))))
|
||||||
|
sort(collect(keys(filter((k,v)-> v==val, aliasMap))))
|
||||||
end
|
end
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user