This commit is contained in:
Thomas Breloff 2015-09-12 22:48:07 -04:00
parent 0a88518188
commit 4f9804d24e

View File

@ -94,9 +94,7 @@ plot(x::AVec, y::AVec{AVec}; kw...) # multiple lines, will assert length(
plot(x::AVec{AVec}, y::AVec{AVec}; kw...) # multiple lines, will assert length(x[i]) == length(y[i]) plot(x::AVec{AVec}, y::AVec{AVec}; kw...) # multiple lines, will assert length(x[i]) == length(y[i])
plot(n::Integer; kw...) # n lines, all empty (for updating plots) plot(n::Integer; kw...) # n lines, all empty (for updating plots)
# TODO: how do we handle NA values in dataframes? # TODO: DataFrames, categorical values
plot(df::DataFrame; kw...) # one line per DataFrame column, labels == names(df)
plot(df::DataFrame, columns; kw...) # one line per column, but on a subset of column names
``` ```
With `subplot`, create multiple plots at once, with flexible layout options: With `subplot`, create multiple plots at once, with flexible layout options:
@ -186,7 +184,8 @@ __Tip__: When plotting multiple lines, you can give every line the same trait by
(yes I know it's not gramatically correct, but it's easy to use and implement) (yes I know it's not gramatically correct, but it's easy to use and implement)
```julia ```julia
plot(rand(100,2); colors = [:red, RGB(.5,.5,0)], axiss = [:left, :right], width = 5) # note the width=5 is applied to both lines # note the same width is applied to both lines, whereas each line gets different color and axis
plot(rand(100,2); colors = [:red, RGB(.5,.5,0)], axiss = [:left, :right], width = 5)
``` ```
# TODO # TODO