38
38
In addition to AxisArtist, the Axes will have *gridlines* attribute,
39
39
which obviously draws grid lines. The gridlines needs to be separated
40
40
from the axis as some gridlines can never pass any axis.
41
-
42
41
"""
42
+
43
43
import numpy as np
44
44
45
- from matplotlib import cbook
46
- from matplotlib import rcParams
45
+ from matplotlib import cbook , rcParams
47
46
import matplotlib .artist as martist
48
47
import matplotlib .axes as maxes
49
48
from matplotlib .path import Path
49
+ from mpl_toolkits .axes_grid1 import mpl_axes
50
50
from .axisline_style import AxislineStyle
51
51
from .axis_artist import AxisArtist , GridlinesCollection
52
52
@@ -483,6 +483,7 @@ def get_gridlines(self, which="major", axis="both"):
483
483
return gridlines
484
484
485
485
486
+ @cbook .deprecated ("3.1" )
486
487
class SimpleChainedObjects (object ):
487
488
def __init__ (self , objects ):
488
489
self ._objects = objects
@@ -498,6 +499,7 @@ def __call__(self, *args, **kwargs):
498
499
499
500
class Axes (maxes .Axes ):
500
501
502
+ @cbook .deprecated ("3.1" )
501
503
class AxisDict (dict ):
502
504
def __init__ (self , axes ):
503
505
self .axes = axes
@@ -545,7 +547,7 @@ def _init_axis_artists(self, axes=None):
545
547
if axes is None :
546
548
axes = self
547
549
548
- self ._axislines = self .AxisDict (self )
550
+ self ._axislines = mpl_axes . Axes .AxisDict (self )
549
551
new_fixed_axis = self .get_grid_helper ().new_fixed_axis
550
552
for loc in ["bottom" , "top" , "left" , "right" ]:
551
553
self ._axislines [loc ] = new_fixed_axis (loc = loc , axes = axes ,
0 commit comments