Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ff6139c

Browse filesBrowse files
committed
Remove cross-references to axes_grid.
This is provided for backwards-compatibility, so point directly to the implementations instead of the compatibility location.
1 parent eee9112 commit ff6139c
Copy full SHA for ff6139c

File tree

Expand file treeCollapse file tree

6 files changed

+13
-37
lines changed
Filter options
Expand file treeCollapse file tree

6 files changed

+13
-37
lines changed

‎.flake8

Copy file name to clipboardExpand all lines: .flake8
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ per-file-ignores =
6161
matplotlib/type1font.py: E731
6262

6363
mpl_toolkits/__init__.py: E261
64-
mpl_toolkits/axes_grid/axes_divider.py: E501
65-
mpl_toolkits/axes_grid/axes_rgb.py: E302, E501
64+
mpl_toolkits/axes_grid/axes_rgb.py: E501
6665
mpl_toolkits/axes_grid1/axes_divider.py: E402, E501
6766
mpl_toolkits/axes_grid1/axes_grid.py: E225
6867
mpl_toolkits/axes_grid1/axes_rgb.py: E231
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from mpl_toolkits.axes_grid1.axes_divider import Divider, AxesLocator, SubplotDivider, \
2-
AxesDivider, locatable_axes_factory, make_axes_locatable
3-
4-
from mpl_toolkits.axes_grid.axislines import Axes
5-
LocatableAxes = locatable_axes_factory(Axes)
1+
from mpl_toolkits.axes_grid1.axes_divider import (
2+
AxesDivider, AxesLocator, Divider, SubplotDivider, locatable_axes_factory,
3+
make_axes_locatable)
4+
from mpl_toolkits.axisartist.axes_divider import LocatableAxes
5+
from mpl_toolkits.axisartist.axislines import Axes
+3-26Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
import mpl_toolkits.axes_grid1.axes_grid as axes_grid_orig
2-
from .axes_divider import LocatableAxes
3-
4-
5-
class CbarAxes(axes_grid_orig.CbarAxesBase, LocatableAxes):
6-
def __init__(self, *args, orientation, **kwargs):
7-
self.orientation = orientation
8-
self._default_label_on = False
9-
self.locator = None
10-
super().__init__(*args, **kwargs)
11-
12-
def cla(self):
13-
super().cla()
14-
self._config_axes()
15-
16-
17-
class Grid(axes_grid_orig.Grid):
18-
_defaultLocatableAxesClass = LocatableAxes
19-
20-
21-
class ImageGrid(axes_grid_orig.ImageGrid):
22-
_defaultLocatableAxesClass = LocatableAxes
23-
_defaultCbarAxesClass = CbarAxes
24-
25-
26-
AxesGrid = ImageGrid
1+
from mpl_toolkits.axisartist.axes_divider import LocatableAxes
2+
from mpl_toolkits.axisartist.axes_grid import (
3+
AxesGrid, CbarAxes, Grid, ImageGrid)

‎lib/mpl_toolkits/axes_grid/axes_rgb.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/axes_grid/axes_rgb.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
from mpl_toolkits.axes_grid1.axes_rgb import make_rgb_axes, imshow_rgb, RGBAxesBase
33

44
#import mpl_toolkits.axes_grid1.axes_rgb as axes_rgb_orig
5-
from .axislines import Axes
5+
from mpl_toolkits.axisartist.axislines import Axes
6+
67

78
class RGBAxes(RGBAxesBase):
89
_defaultAxesClass = Axes

‎lib/mpl_toolkits/axes_grid/parasite_axes.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/axes_grid/parasite_axes.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from mpl_toolkits.axes_grid1.parasite_axes import (
22
host_axes_class_factory, parasite_axes_class_factory,
33
parasite_axes_auxtrans_class_factory, subplot_class_factory)
4-
5-
from .axislines import Axes
4+
from mpl_toolkits.axisartist.axislines import Axes
65

76

87
ParasiteAxes = parasite_axes_class_factory(Axes)

‎lib/mpl_toolkits/axisartist/axes_divider.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/axisartist/axes_divider.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
Divider, AxesLocator, SubplotDivider, AxesDivider, locatable_axes_factory,
33
make_axes_locatable)
44

5-
from mpl_toolkits.axes_grid.axislines import Axes
5+
from mpl_toolkits.axisartist.axislines import Axes
66
LocatableAxes = locatable_axes_factory(Axes)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.