Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e772ac4

Browse files
committed
added depreciation warning to module doc-string
tweaked examples
1 parent ca81f16 commit e772ac4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/matplotlib/finance.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
"""
2-
A collection of modules for collecting, analyzing and plotting
2+
A collection of functions for collecting, analyzing and plotting
33
financial data. User contributions welcome!
44
5+
This module is deprecated in 1.4 and will be moved to `mpl_toolkits`
6+
or it's own project in the future.
7+
58
"""
69
from __future__ import division, print_function
710
import contextlib
@@ -500,7 +503,7 @@ def quotes_historical_yahoo_ochl(ticker, date1, date2, asobject=False,
500503
501504
Examples
502505
--------
503-
>>> sp = f.quotes_historical_yahoo('^GSPC', d1, d2,
506+
>>> sp = f.quotes_historical_yahoo_ochl('^GSPC', d1, d2,
504507
asobject=True, adjusted=True)
505508
>>> returns = (sp.open[1:] - sp.open[:-1])/sp.open[1:]
506509
>>> [n,bins,patches] = hist(returns, 100)
@@ -542,7 +545,7 @@ def quotes_historical_yahoo_ohlc(ticker, date1, date2, asobject=False,
542545
543546
Examples
544547
--------
545-
>>> sp = f.quotes_historical_yahoo('^GSPC', d1, d2,
548+
>>> sp = f.quotes_historical_yahoo_ohlc('^GSPC', d1, d2,
546549
asobject=True, adjusted=True)
547550
>>> returns = (sp.open[1:] - sp.open[:-1])/sp.open[1:]
548551
>>> [n,bins,patches] = hist(returns, 100)

0 commit comments

Comments
 (0)