@@ -2,7 +2,7 @@ from matplotlib.axis import Axis
2
2
from matplotlib .transforms import Transform
3
3
4
4
from collections .abc import Callable , Iterable
5
- from typing import Literal
5
+ from typing import Literal , Union
6
6
from numpy .typing import ArrayLike
7
7
8
8
class ScaleBase :
@@ -15,6 +15,7 @@ class ScaleBase:
15
15
16
16
class LinearScale (ScaleBase ):
17
17
name : str
18
+ def __init__ (self : ScaleBase , axis : Union [Axis , None ] = None ) -> None : ...
18
19
19
20
class FuncTransform (Transform ):
20
21
input_dims : int
@@ -56,12 +57,12 @@ class LogScale(ScaleBase):
56
57
name : str
57
58
subs : Iterable [int ] | None
58
59
def __init__ (
59
- self ,
60
- axis : Axis | None ,
60
+ self : LogScale ,
61
+ axis : Union [ Axis , None ] = None ,
61
62
* ,
62
- base : float = ... ,
63
- subs : Iterable [int ] | None = ... ,
64
- nonpositive : Literal [" clip" , " mask" ] = ...
63
+ base : float = 10 ,
64
+ subs : Union [ Iterable [int ], None ] = None ,
65
+ nonpositive : Union [ Literal [' clip' ], Literal [ ' mask' ]] = 'clip'
65
66
) -> None : ...
66
67
@property
67
68
def base (self ) -> float : ...
@@ -103,13 +104,13 @@ class SymmetricalLogScale(ScaleBase):
103
104
name : str
104
105
subs : Iterable [int ] | None
105
106
def __init__ (
106
- self ,
107
- axis : Axis | None ,
107
+ self : SymmetricalLogScale ,
108
+ axis : Union [ Axis , None ] = None ,
108
109
* ,
109
- base : float = ... ,
110
- linthresh : float = ... ,
111
- subs : Iterable [int ] | None = ... ,
112
- linscale : float = ...
110
+ base : float = 10 ,
111
+ linthresh : float = 2 ,
112
+ subs : Union [ Iterable [int ], None ] = None ,
113
+ linscale : float = 1
113
114
) -> None : ...
114
115
@property
115
116
def base (self ) -> float : ...
@@ -164,15 +165,16 @@ class LogisticTransform(Transform):
164
165
class LogitScale (ScaleBase ):
165
166
name : str
166
167
def __init__ (
167
- self ,
168
- axis : Axis | None ,
169
- nonpositive : Literal [" mask" , " clip" ] = ... ,
168
+ self : LogitScale ,
169
+ axis : Union [ Axis , None ] = None ,
170
+ nonpositive : Union [ Literal [' mask' ], Literal [ ' clip' ]] = 'mask' ,
170
171
* ,
171
- one_half : str = ... ,
172
- use_overline : bool = ...
172
+ one_half : str = ' \\ frac{1}{2}' ,
173
+ use_overline : bool = False
173
174
) -> None : ...
174
175
def ge
51BF
t_transform (self ) -> LogitTransform : ...
175
176
176
177
def get_scale_names () -> list [str ]: ...
177
178
def scale_factory (scale : str , axis : Axis , ** kwargs ) -> ScaleBase : ...
178
179
def register_scale (scale_class : type [ScaleBase ]) -> None : ...
180
+ def handle_axis_parameter (init_func : Callable [..., None ]) -> Callable [..., None ]: ...
0 commit comments