1
- import collections
2
1
import numpy as np
3
- import numbers
4
-
5
- import warnings
6
2
3
+ import matplotlib .cbook as cbook
7
4
import matplotlib .docstring as docstring
8
5
import matplotlib .ticker as mticker
9
6
import matplotlib .transforms as mtransforms
10
- import matplotlib .scale as mscale
11
- import matplotlib .cbook as cbook
12
-
13
7
from matplotlib .axes ._base import _AxesBase
14
-
15
- from matplotlib .ticker import (
16
- AutoLocator ,
17
- AutoMinorLocator ,
18
- FixedLocator ,
19
- FuncFormatter ,
20
- LogFormatterSciNotation ,
21
- LogLocator ,
22
- NullLocator ,
23
- NullFormatter ,
24
- ScalarFormatter
25
- )
26
-
27
- from matplotlib .scale import Log10Transform
8
+ from matplotlib .ticker import FixedLocator
28
9
29
10
30
11
def _make_secondary_locator (rect , parent ):
@@ -254,9 +235,7 @@ def draw(self, renderer=None, inframe=False):
254
235
using the converter specified by
255
236
`~.axes._secondary_axes.set_functions` (or *functions*
256
237
parameter when axes initialized.)
257
-
258
238
"""
259
-
260
239
self ._set_lims ()
261
240
# this sets the scale in case the parent has set its scale.
262
241
self ._set_scale ()
@@ -296,7 +275,7 @@ def _set_scale(self):
296
275
def _set_lims (self ):
297
276
"""
298
277
Set the limits based on parent limits and the convert method
299
- between the parent and this secondary axes
278
+ between the parent and this secondary axes.
300
279
"""
301
280
if self ._orientation == 'x' :
302
281
lims = self ._parent .get_xlim ()
@@ -371,7 +350,8 @@ def set_ylabel(self, ylabel, fontdict=None, labelpad=None, **kwargs):
371
350
372
351
def set_color (self , color ):
373
352
"""
374
- Change the color of the secondary axes and all decorators
353
+ Change the color of the secondary axes and all decorators.
354
+
375
355
Parameters
376
356
----------
377
357
color : Matplotlib color
0 commit comments