@@ -35,6 +35,11 @@ That last line is what the REPL prints out,
3535as a Firefox tab opens with the plot.
3636You 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
5055If 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