From 2eb3467cab9f6f56a60ff92a9929152addf9beac Mon Sep 17 00:00:00 2001 From: Vinithkumar Alande <92010990+Vinith11@users.noreply.github.com> Date: Fri, 13 Oct 2023 12:30:40 +0530 Subject: [PATCH] Update axislines.py Removed _api.warn_deprecated("3.7", message="x=None is deprecated") and Replaced with raise ValueError("x=None is not supported") --- lib/mpl_toolkits/axisartist/axislines.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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__()