Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit83292f5

Browse files
committed
Merge pull request#7295 from NelleV/deprecate_finance
MAINT finance module is deprecated
1 parent6090828 commit83292f5

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

‎lib/matplotlib/finance.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
"""
22
A collection of functions for collecting, analyzing and plotting
3-
financial data. User contributions welcome!
4-
5-
This module is deprecated in 1.4 and will be moved to `mpl_toolkits`
6-
or it's own project in the future.
3+
financial data.
74
5+
This module is deprecated in 2.0 and has been moved to a mpl_toolkit called
6+
`finance`.
87
"""
98
from __future__import (absolute_import,division,print_function,
109
unicode_literals)
@@ -23,12 +22,18 @@
2322

2423
frommatplotlibimportcolorsasmcolors,verbose,get_cachedir
2524
frommatplotlib.datesimportdate2num
26-
frommatplotlib.cbookimportiterable,mkdirs
25+
frommatplotlib.cbookimportiterable,mkdirs,warn_deprecated
2726
frommatplotlib.collectionsimportLineCollection,PolyCollection
2827
frommatplotlib.linesimportLine2D,TICKLEFT,TICKRIGHT
2928
frommatplotlib.patchesimportRectangle
3029
frommatplotlib.transformsimportAffine2D
3130

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

3338
ifsix.PY3:
3439
importhashlib

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp