8000 revert pylab's mpl.finance functionality · matplotlib/matplotlib@4863826 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4863826

Browse files
committed
revert pylab's mpl.finance functionality
The only thing from the now removed `mpl.py` that doesn't get imported when we changed to using `import matplotlib as mpl` and got rid of `mpl.py` altogether, is the `from matplotlib import finance`. This commit restores that backwards-compatible functionality
1 parent 7d20295 commit 4863826

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/pylab.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@
220220
silent_list, iterable, dedent
221221

222222
import matplotlib as mpl
223+
# make mpl.finance module available for backwards compatability, in case folks
224+
# using pylab interface depended on not having to import it
225+
import matplotlib.finance
223226

224227
from matplotlib.dates import date2num, num2date,\
225228
datestr2num, strpdate2num, drange,\

0 commit comments

Comments
 (0)
0