issues with yahoo historical data & candlestick drawing in finance.py

Hi all,

I apologize in advance if these issues have already been addressed. I did a
search of the mailing lists and did not find them discussed but I may have
missed them.

I had some trouble getting the historical quotes data from yahoo to work,
apparently because yahoo changed the format of the dates in their output files
- once I changed the date format string in finance.py it worked fine.

Also the color of the candlestick shadow line that shows the day's range was
hard-coded to be black. Because it didn't show up on my charts with black
backgrounds, I changed the code to make the shadow match the color of the
candle's real body.

I am attaching a diff of my finance.py, which on my Debian Etch system came in
a package that says its version is 0.87.7-0.3.

Please keep in mind that I do not intend the code I am attaching to be a
comprehensive fix, just a simple kludge. I am totally new both to matplotlib
and to python and I have only done as much kludge-ing as was necessary to get
the code to do what I needed it to do right now. I will leave doing things the
right way, to people already more familiar with the language and the code.

Peace,
Michael

finance.py.patch (214 Bytes)

ยทยทยท

____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ