This commit is contained in:
Thomas Breloff 2015-09-21 16:59:15 -04:00
parent c43b34b67f
commit ba13ab9926
3 changed files with 24 additions and 24 deletions

View File

@ -117,7 +117,7 @@ plot(sin, rand(10)) # y = sin(x)
plot(rand(10), sin) # same... y = sin(x)
plot([sin,cos], 0:0.1:π) # plot 2 series, sin(x) and cos(x)
plot([sin,cos], 0, π) # plot sin and cos on the range [0, π]
plot(1:10, [rand(10), sin]) # plot 2 series, y = rand(10) for the first, y = sin(x) for the second... x = 1:10 for both
plot(1:10, Any[rand(10), sin]) # plot 2 series, y = rand(10) for the first, y = sin(x) for the second... x = 1:10 for both
```
With `subplot`, create multiple plots at once, with flexible layout options:
@ -158,7 +158,7 @@ ohlc!(args...; kw...) = plot!(args...; kw..., linetype = :ohlc)
Some keyword arguments you can set:
Keyword | Default Value | Aliases | Applies To
-- | -- | -- | --
---- | ---- | ---- | ----
args | Any[] | [:args,:argss] | Series
axis | left | [:axis,:axiss] | Series
color | auto | [:c,:color,:colors] | Series

View File

@ -218,7 +218,7 @@ function buildReadme()
readme = readall("$DOCDIR/readme_template.md")
# build keyword arg table
kwtable = "Keyword | Default Value | Aliases | Applies To\n-- | -- | -- | --\n"
kwtable = "Keyword | Default Value | Aliases | Applies To\n---- | ---- | ---- | ----\n"
for d in (Plots._seriesDefaults, Plots._plotDefaults)
for k in sort(collect(keys(d)))
kwtable = string(kwtable, "$k | $(d[k]) | $(aliases(Plots._keyAliases, k)) | $(d==Plots._seriesDefaults ? "Series" : "Plot") \n")

View File

@ -117,7 +117,7 @@ plot(sin, rand(10)) # y = sin(x)
plot(rand(10), sin) # same... y = sin(x)
plot([sin,cos], 0:0.1:π) # plot 2 series, sin(x) and cos(x)
plot([sin,cos], 0, π) # plot sin and cos on the range [0, π]
plot(1:10, [rand(10), sin]) # plot 2 series, y = rand(10) for the first, y = sin(x) for the second... x = 1:10 for both
plot(1:10, Any[rand(10), sin]) # plot 2 series, y = rand(10) for the first, y = sin(x) for the second... x = 1:10 for both
```
With `subplot`, create multiple plots at once, with flexible layout options: