diff --git a/lib/matplotlib/finance.py b/lib/matplotlib/finance.py index 6fdd1b6367ec..a7f8dcf3d01f 100644 --- a/lib/matplotlib/finance.py +++ b/lib/matplotlib/finance.py @@ -1,10 +1,9 @@ """ A collection of functions for collecting, analyzing and plotting -financial data. User contributions welcome! - -This module is deprecated in 1.4 and will be moved to `mpl_toolkits` -or it's own project in the future. +financial data. +This module is deprecated in 2.0 and has been moved to a mpl_toolkit called +`finance`. """ from __future__ import (absolute_import, division, print_function, unicode_literals) @@ -23,12 +22,18 @@ from matplotlib import colors as mcolors, verbose, get_cachedir from matplotlib.dates import date2num -from matplotlib.cbook import iterable, mkdirs +from matplotlib.cbook import iterable, mkdirs, warn_deprecated from matplotlib.collections import LineCollection, PolyCollection from matplotlib.lines import Line2D, TICKLEFT, TICKRIGHT from matplotlib.patches import Rectangle from matplotlib.transforms import Affine2D +warn_deprecated( + since=2.0, + message=("The finance module has been deprecated in mpl 2.0 and will " + "be removed in mpl 2.2. Please use the matplotlib toolkit " + "finance instead.")) + if six.PY3: import hashlib