Initial configuration commit
This commit is contained in:
commit
31c8abea59
266 changed files with 780274 additions and 0 deletions
33
typings/matplotlib/projections/__init__.pyi
Normal file
33
typings/matplotlib/projections/__init__.pyi
Normal file
|
@ -0,0 +1,33 @@
|
|||
"""
|
||||
This type stub file was generated by pyright.
|
||||
"""
|
||||
|
||||
from .geo import AitoffAxes, HammerAxes, LambertAxes, MollweideAxes
|
||||
from .polar import PolarAxes
|
||||
from ..axes import Axes
|
||||
|
||||
class ProjectionRegistry:
|
||||
def __init__(self) -> None:
|
||||
...
|
||||
|
||||
def register(self, *projections: type[Axes]) -> None:
|
||||
...
|
||||
|
||||
def get_projection_class(self, name: str) -> type[Axes]:
|
||||
...
|
||||
|
||||
def get_projection_names(self) -> list[str]:
|
||||
...
|
||||
|
||||
|
||||
|
||||
projection_registry: ProjectionRegistry
|
||||
def register_projection(cls: type[Axes]) -> None:
|
||||
...
|
||||
|
||||
def get_projection_class(projection: str | None = ...) -> type[Axes]:
|
||||
...
|
||||
|
||||
def get_projection_names() -> list[str]:
|
||||
...
|
||||
|
157
typings/matplotlib/projections/geo.pyi
Normal file
157
typings/matplotlib/projections/geo.pyi
Normal file
|
@ -0,0 +1,157 @@
|
|||
"""
|
||||
This type stub file was generated by pyright.
|
||||
"""
|
||||
|
||||
from matplotlib.axes import Axes
|
||||
from matplotlib.ticker import Formatter
|
||||
from matplotlib.transforms import Transform
|
||||
from typing import Any, Literal
|
||||
|
||||
class GeoAxes(Axes):
|
||||
class ThetaFormatter(Formatter):
|
||||
def __init__(self, round_to: float = ...) -> None:
|
||||
...
|
||||
|
||||
def __call__(self, x: float, pos: Any | None = ...):
|
||||
...
|
||||
|
||||
|
||||
|
||||
RESOLUTION: float
|
||||
def get_xaxis_transform(self, which: Literal["tick1", "tick2", "grid"] = ...) -> Transform:
|
||||
...
|
||||
|
||||
def get_xaxis_text1_transform(self, pad: float) -> tuple[Transform, Literal["center", "top", "bottom", "baseline", "center_baseline"], Literal["center", "left", "right"],]:
|
||||
...
|
||||
|
||||
def get_xaxis_text2_transform(self, pad: float) -> tuple[Transform, Literal["center", "top", "bottom", "baseline", "center_baseline"], Literal["center", "left", "right"],]:
|
||||
...
|
||||
|
||||
def get_yaxis_transform(self, which: Literal["tick1", "tick2", "grid"] = ...) -> Transform:
|
||||
...
|
||||
|
||||
def get_yaxis_text1_transform(self, pad: float) -> tuple[Transform, Literal["center", "top", "bottom", "baseline", "center_baseline"], Literal["center", "left", "right"],]:
|
||||
...
|
||||
|
||||
def get_yaxis_text2_transform(self, pad: float) -> tuple[Transform, Literal["center", "top", "bottom", "baseline", "center_baseline"], Literal["center", "left", "right"],]:
|
||||
...
|
||||
|
||||
def set_xlim(self, *args, **kwargs) -> tuple[float, float]:
|
||||
...
|
||||
|
||||
def set_ylim(self, *args, **kwargs) -> tuple[float, float]:
|
||||
...
|
||||
|
||||
def format_coord(self, lon: float, lat: float) -> str:
|
||||
...
|
||||
|
||||
def set_longitude_grid(self, degrees: float) -> None:
|
||||
...
|
||||
|
||||
def set_latitude_grid(self, degrees: float) -> None:
|
||||
...
|
||||
|
||||
def set_longitude_grid_ends(self, degrees: float) -> None:
|
||||
...
|
||||
|
||||
def get_data_ratio(self) -> float:
|
||||
...
|
||||
|
||||
def can_zoom(self) -> bool:
|
||||
...
|
||||
|
||||
def can_pan(self) -> bool:
|
||||
...
|
||||
|
||||
def start_pan(self, x, y, button) -> None:
|
||||
...
|
||||
|
||||
def end_pan(self) -> None:
|
||||
...
|
||||
|
||||
def drag_pan(self, button, key, x, y) -> None:
|
||||
...
|
||||
|
||||
|
||||
|
||||
class _GeoTransform(Transform):
|
||||
input_dims: int
|
||||
output_dims: int
|
||||
def __init__(self, resolution: int) -> None:
|
||||
...
|
||||
|
||||
|
||||
|
||||
class AitoffAxes(GeoAxes):
|
||||
name: str
|
||||
class AitoffTransform(_GeoTransform):
|
||||
def inverted(self) -> AitoffAxes.InvertedAitoffTransform:
|
||||
...
|
||||
|
||||
|
||||
|
||||
class InvertedAitoffTransform(_GeoTransform):
|
||||
def inverted(self) -> AitoffAxes.AitoffTransform:
|
||||
...
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class HammerAxes(GeoAxes):
|
||||
name: str
|
||||
class HammerTransform(_GeoTransform):
|
||||
def inverted(self) -> HammerAxes.InvertedHammerTransform:
|
||||
...
|
||||
|
||||
|
||||
|
||||
class InvertedHammerTransform(_GeoTransform):
|
||||
def inverted(self) -> HammerAxes.HammerTransform:
|
||||
...
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class MollweideAxes(GeoAxes):
|
||||
name: str
|
||||
class MollweideTransform(_GeoTransform):
|
||||
def inverted(self) -> MollweideAxes.InvertedMollweideTransform:
|
||||
...
|
||||
|
||||
|
||||
|
||||
class InvertedMollweideTransform(_GeoTransform):
|
||||
def inverted(self) -> MollweideAxes.MollweideTransform:
|
||||
...
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class LambertAxes(GeoAxes):
|
||||
name: str
|
||||
class LambertTransform(_GeoTransform):
|
||||
def __init__(self, center_longitude: float, center_latitude: float, resolution: int) -> None:
|
||||
...
|
||||
|
||||
def inverted(self) -> LambertAxes.InvertedLambertTransform:
|
||||
...
|
||||
|
||||
|
||||
|
||||
class InvertedLambertTransform(_GeoTransform):
|
||||
def __init__(self, center_longitude: float, center_latitude: float, resolution: int) -> None:
|
||||
...
|
||||
|
||||
def inverted(self) -> LambertAxes.LambertTransform:
|
||||
...
|
||||
|
||||
|
||||
|
||||
def __init__(self, *args, center_longitude: float = ..., center_latitude: float = ..., **kwargs) -> None:
|
||||
...
|
||||
|
||||
|
||||
|
242
typings/matplotlib/projections/polar.pyi
Normal file
242
typings/matplotlib/projections/polar.pyi
Normal file
|
@ -0,0 +1,242 @@
|
|||
"""
|
||||
This type stub file was generated by pyright.
|
||||
"""
|
||||
|
||||
import matplotlib.axis as maxis
|
||||
import matplotlib.ticker as mticker
|
||||
import matplotlib.transforms as mtransforms
|
||||
import numpy as np
|
||||
from matplotlib.axes import Axes
|
||||
from matplotlib.lines import Line2D
|
||||
from matplotlib.text import Text
|
||||
from numpy.typing import ArrayLike
|
||||
from collections.abc import Sequence
|
||||
from typing import Any, ClassVar, Literal, overload
|
||||
|
||||
class PolarTransform(mtransforms.Transform):
|
||||
input_dims: int
|
||||
output_dims: int
|
||||
def __init__(self, axis: PolarAxes | None = ..., use_rmin: bool = ..., _apply_theta_transforms: bool = ..., *, scale_transform: mtransforms.Transform | None = ...) -> None:
|
||||
...
|
||||
|
||||
def inverted(self) -> InvertedPolarTransform:
|
||||
...
|
||||
|
||||
|
||||
|
||||
class PolarAffine(mtransforms.Affine2DBase):
|
||||
def __init__(self, scale_transform: mtransforms.Transform, limits: mtransforms.BboxBase) -> None:
|
||||
...
|
||||
|
||||
|
||||
|
||||
class InvertedPolarTransform(mtransforms.Transform):
|
||||
input_dims: int
|
||||
output_dims: int
|
||||
def __init__(self, axis: PolarAxes | None = ..., use_rmin: bool = ..., _apply_theta_transforms: bool = ...) -> None:
|
||||
...
|
||||
|
||||
def inverted(self) -> PolarTransform:
|
||||
...
|
||||
|
||||
|
||||
|
||||
class ThetaFormatter(mticker.Formatter):
|
||||
...
|
||||
|
||||
|
||||
class _AxisWrapper:
|
||||
def __init__(self, axis: maxis.Axis) -> None:
|
||||
...
|
||||
|
||||
def get_view_interval(self) -> np.ndarray:
|
||||
...
|
||||
|
||||
def set_view_interval(self, vmin: float, vmax: float) -> None:
|
||||
...
|
||||
|
||||
def get_minpos(self) -> float:
|
||||
...
|
||||
|
||||
def get_data_interval(self) -> np.ndarray:
|
||||
...
|
||||
|
||||
def set_data_interval(self, vmin: float, vmax: float) -> None:
|
||||
...
|
||||
|
||||
def get_tick_space(self) -> int:
|
||||
...
|
||||
|
||||
|
||||
|
||||
class ThetaLocator(mticker.Locator):
|
||||
base: mticker.Locator
|
||||
axis: _AxisWrapper | None
|
||||
def __init__(self, base: mticker.Locator) -> None:
|
||||
...
|
||||
|
||||
|
||||
|
||||
class ThetaTick(maxis.XTick):
|
||||
def __init__(self, axes: PolarAxes, *args, **kwargs) -> None:
|
||||
...
|
||||
|
||||
|
||||
|
||||
class ThetaAxis(maxis.XAxis):
|
||||
axis_name: str
|
||||
...
|
||||
|
||||
|
||||
class RadialLocator(mticker.Locator):
|
||||
base: mticker.Locator
|
||||
def __init__(self, base, axes: PolarAxes | None = ...) -> None:
|
||||
...
|
||||
|
||||
|
||||
|
||||
class RadialTick(maxis.YTick):
|
||||
...
|
||||
|
||||
|
||||
class RadialAxis(maxis.YAxis):
|
||||
axis_name: str
|
||||
...
|
||||
|
||||
|
||||
class _WedgeBbox(mtransforms.Bbox):
|
||||
def __init__(self, center: tuple[float, float], viewLim: mtransforms.Bbox, originLim: mtransforms.Bbox, **kwargs) -> None:
|
||||
...
|
||||
|
||||
|
||||
|
||||
class PolarAxes(Axes):
|
||||
PolarTransform: ClassVar[type] = ...
|
||||
PolarAffine: ClassVar[type] = ...
|
||||
InvertedPolarTransform: ClassVar[type] = ...
|
||||
ThetaFormatter: ClassVar[type] = ...
|
||||
RadialLocator: ClassVar[type] = ...
|
||||
ThetaLocator: ClassVar[type] = ...
|
||||
name: str
|
||||
use_sticky_edges: bool
|
||||
def __init__(self, *args, theta_offset: float = ..., theta_direction: float = ..., rlabel_position: float = ..., **kwargs) -> None:
|
||||
...
|
||||
|
||||
def get_xaxis_transform(self, which: Literal["tick1", "tick2", "grid"] = ...) -> mtransforms.Transform:
|
||||
...
|
||||
|
||||
def get_xaxis_text1_transform(self, pad: float) -> tuple[mtransforms.Transform, Literal["center", "top", "bottom", "baseline", "center_baseline"], Literal["center", "left", "right"],]:
|
||||
...
|
||||
|
||||
def get_xaxis_text2_transform(self, pad: float) -> tuple[mtransforms.Transform, Literal["center", "top", "bottom", "baseline", "center_baseline"], Literal["center", "left", "right"],]:
|
||||
...
|
||||
|
||||
def get_yaxis_transform(self, which: Literal["tick1", "tick2", "grid"] = ...) -> mtransforms.Transform:
|
||||
...
|
||||
|
||||
def get_yaxis_text1_transform(self, pad: float) -> tuple[mtransforms.Transform, Literal["center", "top", "bottom", "baseline", "center_baseline"], Literal["center", "left", "right"],]:
|
||||
...
|
||||
|
||||
def get_yaxis_text2_transform(self, pad: float) -> tuple[mtransforms.Transform, Literal["center", "top", "bottom", "baseline", "center_baseline"], Literal["center", "left", "right"],]:
|
||||
...
|
||||
|
||||
def set_thetamax(self, thetamax: float) -> None:
|
||||
...
|
||||
|
||||
def get_thetamax(self) -> float:
|
||||
...
|
||||
|
||||
def set_thetamin(self, thetamin: float) -> None:
|
||||
...
|
||||
|
||||
def get_thetamin(self) -> float:
|
||||
...
|
||||
|
||||
@overload
|
||||
def set_thetalim(self, minval: float, maxval: float, /) -> tuple[float, float]:
|
||||
...
|
||||
|
||||
@overload
|
||||
def set_thetalim(self, *, thetamin: float, thetamax: float) -> tuple[float, float]:
|
||||
...
|
||||
|
||||
def set_theta_offset(self, offset: float) -> None:
|
||||
...
|
||||
|
||||
def get_theta_offset(self) -> float:
|
||||
...
|
||||
|
||||
def set_theta_zero_location(self, loc: Literal["N", "NW", "W", "SW", "S", "SE", "E", "NE"], offset: float = ...) -> None:
|
||||
...
|
||||
|
||||
def set_theta_direction(self, direction: Literal[-1, 1, "clockwise", "counterclockwise", "anticlockwise"]) -> None:
|
||||
...
|
||||
|
||||
def get_theta_direction(self) -> Literal[-1, 1]:
|
||||
...
|
||||
|
||||
def set_rmax(self, rmax: float) -> None:
|
||||
...
|
||||
|
||||
def get_rmax(self) -> float:
|
||||
...
|
||||
|
||||
def set_rmin(self, rmin: float) -> None:
|
||||
...
|
||||
|
||||
def get_rmin(self) -> float:
|
||||
...
|
||||
|
||||
def set_rorigin(self, rorigin: float | None) -> None:
|
||||
...
|
||||
|
||||
def get_rorigin(self) -> float:
|
||||
...
|
||||
|
||||
def get_rsign(self) -> float:
|
||||
...
|
||||
|
||||
def set_rlim(self, bottom: float | tuple[float, float] | None = ..., top: float | None = ..., *, emit: bool = ..., auto: bool = ..., **kwargs) -> tuple[float, float]:
|
||||
...
|
||||
|
||||
def get_rlabel_position(self) -> float:
|
||||
...
|
||||
|
||||
def set_rlabel_position(self, value: float) -> None:
|
||||
...
|
||||
|
||||
def set_rscale(self, *args, **kwargs) -> None:
|
||||
...
|
||||
|
||||
def set_rticks(self, *args, **kwargs) -> None:
|
||||
...
|
||||
|
||||
def set_thetagrids(self, angles: ArrayLike, labels: Sequence[str | Text] | None = ..., fmt: str | None = ..., **kwargs) -> tuple[list[Line2D], list[Text]]:
|
||||
...
|
||||
|
||||
def set_rgrids(self, radii: ArrayLike, labels: Sequence[str | Text] | None = ..., angle: float | None = ..., fmt: str | None = ..., **kwargs) -> tuple[list[Line2D], list[Text]]:
|
||||
...
|
||||
|
||||
def format_coord(self, theta: float, r: float) -> str:
|
||||
...
|
||||
|
||||
def get_data_ratio(self) -> float:
|
||||
...
|
||||
|
||||
def can_zoom(self) -> bool:
|
||||
...
|
||||
|
||||
def can_pan(self) -> bool:
|
||||
...
|
||||
|
||||
def start_pan(self, x: float, y: float, button: int) -> None:
|
||||
...
|
||||
|
||||
def end_pan(self) -> None:
|
||||
...
|
||||
|
||||
def drag_pan(self, button: Any, key: Any, x: float, y: float) -> None:
|
||||
...
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue