Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2930635

Browse files
committed
Merge pull request #1931 from NelleV/axes_module
[SPRINT] Refactored the axes module to split it in smaller chunks.
2 parents 85123bb + 9412e84 commit 2930635

File tree

10 files changed

+3883
-3787
lines changed

10 files changed

+3883
-3787
lines changed

CHANGELOG

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
2013-06-26 Refactored the axes module: the axes module is now a folder,
2+
containing the following submodule:
3+
- _subplots.py, containing all the subplots helper methods
4+
- _base.py, containing several private methods and a new
5+
_AxesBase class. This _AxesBase class contains all the methods
6+
that are not directly linked to plots of the "old" Axes
7+
- _axes.py contains the Axes class. This class now inherits from
8+
_AxesBase: it contains all "plotting" methods and labelling
9+
methods.
10+
This refactoring should not affect the API. Only private methods
11+
are not importable from the axes module anymore.
12+
113
2013-05-18 Added support for arbitrary rasterization resolutions to the
214
SVG backend. Previously the resolution was hard coded to 72
315
dpi. Now the backend class takes a image_dpi argument for

doc/api/api_changes.rst

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,42 @@ help figure out possible sources of the changes you are experiencing.
1111
For new features that were added to matplotlib, please see
1212
:ref:`whats-new`.
1313

14+
Changes in 1.4.x
15+
================
16+
17+
* A major refactoring of the axes module was made. The axes module has been
18+
splitted into smaller modules:
19+
20+
- the `_base` module, which contains a new private _AxesBase class. This
21+
class contains all methods except plotting and labelling methods.
22+
- the `axes` module, which contains the Axes class. This class inherits
23+
from _AxesBase, and contains all plotting and labelling methods.
24+
- the `_subplot` module, with all the classes concerning subplotting.
25+
26+
There are a couple of things that do not exists in the `axes` module's
27+
namespace anymore. If you use them, you need to import them from their
28+
original location:
29+
30+
- math -> `import math`
31+
- ma -> `from numpy import ma`
32+
- cbook -> `from matplotlib import cbook`
33+
- division -> `from __future__ import division`
34+
- docstring -> `from matplotlib impotr docstring`
35+
- is_sequence_of_strings -> `from matplotlib.cbook import is_sequence_of_strings`
36+
- is_string_like -> `from matplotlib.cbook import is_string_like`
37+
- iterable -> `from matplotlib.cbook import iterable`
38+
- itertools -> `import itertools`
39+
- martist -> `from matplotlib import artist as martist`
40+
- matplotlib -> `import matplotlib`
41+
- mcoll -> `from matplotlib import collections as mcoll`
42+
- mcolors -> `from matplotlib import colors as mcolors`
43+
- mcontour -> `from matplotlib import contour as mcontour`
44+
- mpatches -> `from matplotlib import patchs as mpatches`
45+
- mpath -> `from matplotlib import path as mpath`
46+
- mquiver -> `from matplotlib import quiver as mquiver`
47+
- mstack -> `from matplotlib import stack as mstack`
48+
- mstream -> `from matplotlib import stream as mstream`
49+
- mtable -> `from matplotlib import table as mtable`
1450

1551
.. _changes_in_1_3:
1652

lib/matplotlib/axes/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from matplotlib.axes._subplots import *
2+
from matplotlib.axes._axes import *
3+
from matplotlib.axes._base import _string_to_bool

0 commit comments

Comments
 (0)