Ask Your Question

Multiple time-series(MS excel line graph) style plots

asked 2012-02-27 08:48:20 -0500

I. Noobton gravatar image

updated 2015-01-13 15:31:21 -0500

FrédéricC gravatar image

Hello you wise sages,

I have several lists of 1 dimensional data which I would like to plot on one set of axes, in a time series format.

More info:

I can plot one set this way:

1dlist = [34,52,65]
t = finance.TimeSeries(1dlist)

So if I had 2 lists, 1dlistA and 1dlistB, how would I overlay plots of them both?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2012-02-27 08:56:10 -0500

I. Noobton gravatar image

nevermind, I figured it out. It's done like this:

a = finance.TimeSeries(1dlistA)
b = finance.TimeSeries(1dlistB)
both = a.plot() + b.plot()
edit flag offensive delete link more


I think you meant in the last line.

Shashank gravatar imageShashank ( 2012-02-27 08:57:50 -0500 )edit

Or just "both", perhaps!

kcrisman gravatar imagekcrisman ( 2012-02-27 09:21:21 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2012-02-27 08:48:20 -0500

Seen: 668 times

Last updated: Feb 27 '12