8000 remove undocumented `matplotlib/mpl.py` · matplotlib/matplotlib@7d20295 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7d20295

Browse files
committed
remove undocumented matplotlib/mpl.py
`matplotlib/mpl.py` is a file which gets imported via ipython's `%pyplot` interface as module named `mpl`, yet it isn't clear at all what it's role is. Given that in our own code, and in the rest of our python neighborhood, we often do `import matplotlib as mpl`, it's quite a bit confusing to have something with the `mpl` name within matplotlib not be the `matplotlib` module itself. This module was only used in `pylab` interface, where it was simply imported in one line via `from matplotlib import mpl` and never used again.
1 parent a1f8b4e commit 7d20295

File tree

3 files changed

+5
-27
lines changed

3 files changed

+5
-27
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2+
2012-11-26 removed matplotlib/mpl.py, which was used only in pylab.py and was
3+
now replaced by the more suitable `import matplotlib as mpl`. - PI
4+
15
2012-11-13 Add a symmetric log normalization class to colors.py.
26
Also added some tests for the normalization class.
37
Till Stensitzki

lib/matplotlib/mpl.py

Lines changed: 0 additions & 26 deletions
This file was deleted.

lib/matplotlib/pylab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
from cbook import flatten, is_string_like, exception_to_str, \
220220
silent_list, iterable, dedent
221221

222-
from matplotlib import mpl # pulls in most modules
222+
import matplotlib as mpl
223223

224224
from matplotlib.dates import date2num, num2date,\
225225
datestr2num, strpdate2num, drange,\

0 commit comments

Comments
 (0)
0