Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 486382602bd32301bf4f1921adde4d276fd9bf0f 1 parent 7d20295
Paul Ivanov ivanov authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/matplotlib/pylab.py
3  lib/matplotlib/pylab.py
View
@@ -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,\
Please sign in to comment.
Something went wrong with that request. Please try again.