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
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
53c53
< dt = datetime.date(*time.strptime(datestr, '%d-%b-%y')[:3])
---
> dt = datetime.date(*time.strptime(datestr, '%Y-%m-%d')[:3])
268c268
< color='k',
---
> color=color,
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users