Ask Your Question
1

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

asked 13 years ago

I. Noobton gravatar image

updated 10 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 13 years ago

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()
Preview: (hide)
link

Comments

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

Shashank gravatar imageShashank ( 13 years ago )

Or just "both", perhaps!

kcrisman gravatar imagekcrisman ( 13 years ago )

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: 13 years ago

Seen: 1,062 times

Last updated: Feb 27 '12