Using PyLab to create a 2D graph from two separate lists

Posted by user324333 on Stack Overflow See other posts from Stack Overflow or by user324333
Published on 2010-04-27T14:50:59Z Indexed on 2010/04/27 14:53 UTC
Read the original article Hit count: 308

Filed under:
|
|

Hey Guys,

This seems like a basic problem with an easy answer but I simply cannot figure it out no matter how much I try.

I am trying to create a line graph based on two lists. For my x-axis, I want my list to be a set of strings.

x_axis_list = ["Jan-06","Jul-06","Jan-07","Jul-07","Jan-08"]
y_axis_list = [5,7,6,8,9]

Any suggestions on how to best graph these items?

© Stack Overflow or respective owner

Related posts about python

Related posts about pylab