Skip to content

Commit 5a2adf8

Browse files
committed
Partial commit, continue converting wrappers
1 parent b2376f0 commit 5a2adf8

File tree

16 files changed

+5255
-5083
lines changed

16 files changed

+5255
-5083
lines changed

proplot/axes/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
"""
55
import matplotlib.projections as mproj
66

7-
from . import plot
87
from .base import Axes # noqa: F401
98
from .cartesian import CartesianAxes
109
from .geo import GeoAxes # noqa: F401
1110
from .geo import BasemapAxes, CartopyAxes
12-
from .plot import * # noqa: F401, F403
11+
from .plot import PlotAxes # noqa: F401
1312
from .polar import PolarAxes
1413
from .three import Axes3D # noqa: F401
1514

@@ -22,11 +21,11 @@
2221
# Prevent importing module names and set order of appearance for objects
2322
__all__ = [
2423
'Axes',
24+
'PlotAxes',
2525
'CartesianAxes',
2626
'PolarAxes',
2727
'GeoAxes',
2828
'CartopyAxes',
2929
'BasemapAxes',
3030
'Axes3D',
3131
]
32-
__all__.extend(plot.__all__) # document wrappers as part of proplot/axes submodule

proplot/axes/base.py

Lines changed: 1234 additions & 539 deletions
Large diffs are not rendered by default.

proplot/axes/cartesian.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from ..internals import ic # noqa: F401
1414
from ..internals import _not_none, docstring, rcsetup, warnings
1515
from ..utils import units
16-
from . import base
16+
from . import plot
1717

1818
__all__ = ['CartesianAxes']
1919

@@ -196,7 +196,7 @@ def _parse_rcloc(x, string): # figures out string location
196196
return 'neither'
197197

198198

199-
class CartesianAxes(base.Axes):
199+
class CartesianAxes(plot.PlotAxes):
200200
"""
201201
Axes subclass for plotting in ordinary Cartesian coordinates.
202202
Adds the `~CartesianAxes.format` method and overrides several existing
@@ -210,6 +210,8 @@ def __init__(self, *args, **kwargs):
210210
See also
211211
--------
212212
proplot.ui.subplots
213+
proplot.axes.Axes
214+
proplot.axes.PlotAxes
213215
"""
214216
# Impose default formatter
215217
super().__init__(*args, **kwargs)
@@ -1015,7 +1017,7 @@ def format(
10151017
10161018
Other parameters
10171019
----------------
1018-
%(axes.other)s
1020+
%(axes.format_other)s
10191021
10201022
See also
10211023
--------

0 commit comments

Comments
 (0)