Ask Your Question
1

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

asked 2012-02-27 15:48:20 +0100

I. Noobton gravatar image

updated 2015-01-13 22:31:21 +0100

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)
t.plot()

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
1

answered 2012-02-27 15:56:10 +0100

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()
both.plot()
edit flag offensive delete link more

Comments

I think you meant both.show() in the last line.

Shashank gravatar imageShashank ( 2012-02-27 15:57:50 +0100 )edit

Or just "both", perhaps!

kcrisman gravatar imagekcrisman ( 2012-02-27 16:21:21 +0100 )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

Stats

Asked: 2012-02-27 15:48:20 +0100

Seen: 1,037 times

Last updated: Feb 27 '12