Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ultraplot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from .axes import GeoAxes as GeoAxes
from .axes import PlotAxes as PlotAxes
from .axes import PolarAxes as PolarAxes
from .axes import TaylorAxes as TaylorAxes
from .axes import ThreeAxes as ThreeAxes
from .colors import ColormapDatabase as ColormapDatabase
from .colors import ColorDatabase as ColorDatabase
Expand Down
11 changes: 10 additions & 1 deletion ultraplot/axes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from .plot import PlotAxes # noqa: F401
from .polar import PolarAxes
from .shared import _SharedAxes # noqa: F401
from .taylor import TaylorAxes
from .three import ThreeAxes # noqa: F401

# Prevent importing module names and set order of appearance for objects
Expand All @@ -25,6 +26,7 @@
"PlotAxes",
"CartesianAxes",
"PolarAxes",
"TaylorAxes",
"GeoAxes",
"ThreeAxes",
"ExternalAxesContainer",
Expand All @@ -34,7 +36,14 @@
# NOTE: We integrate with cartopy and basemap rather than using matplotlib's
# native projection system. Therefore axes names are not part of public API.
_cls_dict = {} # track valid names
for _cls in (CartesianAxes, PolarAxes, _CartopyAxes, _BasemapAxes, ThreeAxes):
for _cls in (
CartesianAxes,
PolarAxes,
TaylorAxes,
_CartopyAxes,
_BasemapAxes,
ThreeAxes,
):
for _name in (_cls._name, *_cls._name_aliases):
with context._state_context(_cls, name="ultraplot_" + _name):
mproj.register_projection(_cls)
Expand Down
Loading