diff --git a/lib/mpl_toolkits/axisartist/axislines.py b/lib/mpl_toolkits/axisartist/axislines.py index 35717da8eaa9..f9a8f25a788e 100644 --- a/lib/mpl_toolkits/axisartist/axislines.py +++ b/lib/mpl_toolkits/axisartist/axislines.py @@ -124,9 +124,7 @@ def __init__(self, loc, nth_coord=None): {"bottom": 0, "top": 0, "left": 1, "right": 1}, loc=loc)) if (nth_coord == 0 and loc not in ["left", "right"] or nth_coord == 1 and loc not in ["bottom", "top"]): - _api.warn_deprecated( - "3.7", message=f"{loc=!r} is incompatible with " - "{nth_coord=}; support is deprecated since %(since)s") + raise ValueError("x=None is not supported") self._loc = loc self._pos = {"bottom": 0, "top": 1, "left": 0, "right": 1}[loc] super().__init__()