Skip to content

Commit 0d1dde7

Browse files
committed
MNT: Move import to top of module
1 parent 2ce78a7 commit 0d1dde7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/mpl_toolkits/axes_grid1/axes_rgb.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import numpy as np
77
from .axes_divider import make_axes_locatable, Size, locatable_axes_factory
88
import sys
9+
from .mpl_axes import Axes
10+
911

1012
def make_rgb_axes(ax, pad=0.01, axes_class=None, add_all=True):
1113
"""
@@ -54,8 +56,6 @@ def make_rgb_axes(ax, pad=0.01, axes_class=None, add_all=True):
5456

5557
return ax_rgb
5658

57-
#import matplotlib.axes as maxes
58-
5959

6060
def imshow_rgb(ax, r, g, b, **kwargs):
6161
ny, nx = r.shape
@@ -73,8 +73,6 @@ def imshow_rgb(ax, r, g, b, **kwargs):
7373
return im_rgb
7474

7575

76-
from .mpl_axes import Axes
77-
7876
class RGBAxesBase(object):
7977
"""base class for a 4-panel imshow (RGB, R, G, B)
8078

0 commit comments

Comments
 (0)