[SciPy-user] FW: Pylab load dates

Vincent Nijs v-nijs at kellogg.northwestern.edu
Sat Dec 30 23:13:30 EST 2006


I there someone on this list that can build matplotlib for the mac? I used
the matplotlib package in the superpack and also tried the one on macpython
to run the example below to read dates from a csv file but it didn't work.
Apparently because the pytz module is not available in the matplotlib
packages for the mac.

I tried compiling matplotlib myself but got the following error on build:

gcc: cannot specify -o with -c or -S and multiple compilations

Vincent



from pylab import figure, show, datestr2num, load
dates, closes = load(
    'data/msft.csv', delimiter=',',
    converters={0:datestr2num}, skiprows=1, usecols=(0,2),
    unpack=True)


Date,Open,High,Low,Close,Volume,Adj. Close*
19-Sep-03,29.76,29.97,29.52,29.96,92433800,29.79
18-Sep-03,28.49,29.51,28.42,29.50,67268096,29.34
17-Sep-03,28.76,28.95,28.47,28.50,47221600,28.34
16-Sep-03,28.41,28.95,28.32,28.90,52060600,28.74
15-Sep-03,28.37,28.61,28.33,28.36,41432300,28.20
12-Sep-03,27.48,28.40,27.45,28.34,55777200,28.18
11-Sep-03,27.66,28.11,27.59,27.84,37813300,27.68
10-Sep-03,28.03,28.18,27.48,27.55,54763500,27.40





More information about the SciPy-User mailing list