Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 79c6966

Browse filesBrowse files
committed
MAINT finance module is deprecated
1 parent e24322c commit 79c6966
Copy full SHA for 79c6966

File tree

Expand file treeCollapse file tree

1 file changed

+8
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-2
lines changed

‎lib/matplotlib/finance.py

Copy file name to clipboardExpand all lines: lib/matplotlib/finance.py
+8-2Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
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`
5+
This module is deprecated in 2.0 and will be moved to `mpl_toolkits`
66
or it's own project in the future.
77
88
"""
@@ -23,12 +23,18 @@
2323

2424
from matplotlib import colors as mcolors, verbose, get_cachedir
2525
from matplotlib.dates import date2num
26-
from matplotlib.cbook import iterable, mkdirs
26+
from matplotlib.cbook import iterable, mkdirs, warn_deprecated
2727
from matplotlib.collections import LineCollection, PolyCollection
2828
from matplotlib.lines import Line2D, TICKLEFT, TICKRIGHT
2929
from matplotlib.patches import Rectangle
3030
from matplotlib.transforms import Affine2D
3131

32+
warn_deprecated(
33+
since=2.0,
34+
message=("The finance module has been deprecated in mpl 2.0 and will "
35+
"be removed in mpl 2.2. Please use the matplotlib toolkit "
36+
"finance instead."))
37+
3238

3339
if six.PY3:
3440
import hashlib

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.