@@ -2115,6 +2115,24 @@ def box(on: bool | None = None) -> None:
2115
2115
## Axis ##
2116
2116
2117
2117
2118
+ @overload
2119
+ def xlim () -> tuple [float , float ]:
2120
+ ...
2121
+
2122
+
2123
+ @overload
2124
+ def xlim (
2125
+ left : float | tuple [float , float ] | None = None ,
2126
+ right : float | None = None ,
2127
+ * ,
2128
+ emit : bool = True ,
2129
+ auto : bool | None = False ,
2130
+ xmin : float | None = None ,
2131
+ xmax : float | None = None ,
2132
+ ) -> tuple [float , float ]:
2133
+ ...
2134
+
2135
+
2118
2136
def xlim (* args , ** kwargs ) -> tuple [float , float ]:
2119
2137
"""
2120
2138
Get or set the x limits of the current Axes.
@@ -2152,6 +2170,24 @@ def xlim(*args, **kwargs) -> tuple[float, float]:
2152
2170
return ret
2153
2171
2154
2172
2173
+ @overload
2174
+ def ylim () -> tuple [float , float ]:
2175
+ ...
2176
+
2177
+
2178
+ @overload
2179
+ def ylim (
2180
+ bottom : float | tuple [float , float ] | None = None ,
2181
+ top : float | None = None ,
2182
+ * ,
2183
+ emit : bool = True ,
2184
+ auto : bool | None = False ,
2185
+ ymin : float | None = None ,
2186
+ ymax : float | None = None ,
2187
+ ) -> tuple [float , float ]:
2188
+ ...
2189
+
2190
+
2155
2191
def ylim (* args , ** kwargs ) -> tuple [float , float ]:
2156
2192
"""
2157
2193
Get or set the y-limits of the current Axes.
0 commit comments