Skip to content

Commit b3725f6

Browse files
committed
Updated README with TimeSeries
1 parent e1a7a7f commit b3725f6

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ That last line is what the REPL prints out,
3535
as a Firefox tab opens with the plot.
3636
You can also just call `plot` by itself, and you'll get a String that's the url of your chart.
3737

38+
## Style and Layout
39+
julia> Plotly.style(["line"=>["color"=>"rgb(255,0,0)","width"=>10]])
40+
41+
julia> Plotly.layout(["layout"=>["title"=>"Time Wasted"]])
42+
3843
## Plot Functions and Polynomials
3944
julia> Plotly.plot(abs)
4045
julia> Plotly.plot([sqrt, log], ["left"=>10, "right"=>20, "step"=>0.1])
@@ -48,13 +53,11 @@ the square root and logarithm functions, both from 10 to 20 at increments of 0.1
4853
julia> Plotly.plot(3x^3 + 2x^2 - x + 1)
4954

5055
If you have the Polynomial package installed, you can plot them directly the same way as math functions.
51-
52-
## Style and Layout
53-
julia> Plotly.style(["line"=>["color"=>"rgb(255,0,0)","width"=>10]])
54-
55-
julia> Plotly.layout(["layout"=>["title"=>"Time Wasted"]])
5656

57+
## Plot TimeSeries
58+
julia> using TimeSeries
59+
julia> d = [date(2012,5,29):date(2013,5,29)]
60+
julia> t = TimeArray(d, rand(length(d),2), ["foo","bar"])
61+
julia> Plotly.plot(t)
5762

58-
59-
60-
63+
If you have the TimeSeries package installed, you can plot them directly by passing a TimeArray argument.

0 commit comments

Comments
 (0)