Ask Your Question
1

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

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

I. Noobton gravatar image

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

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 08:56:10 -0600

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 08:57:50 -0600 )edit

Or just "both", perhaps!

kcrisman gravatar imagekcrisman ( 2012-02-27 09:21:21 -0600 )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 08:48:20 -0600

Seen: 682 times

Last updated: Feb 27 '12