Permalink
Browse files

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
  • Loading branch information...
1 parent 7d20295 commit 486382602bd32301bf4f1921adde4d276fd9bf0f @ivanov ivanov committed Nov 26, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/matplotlib/pylab.py
@@ -220,6 +220,9 @@
silent_list, iterable, dedent
import matplotlib as mpl
+# make mpl.finance module available for backwards compatability, in case folks
+# using pylab interface depended on not having to import it
+import matplotlib.finance
from matplotlib.dates import date2num, num2date,\
datestr2num, strpdate2num, drange,\

0 comments on commit 4863826

Please sign in to comment.