We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccd52a1 commit c72ad39Copy full SHA for c72ad39
lib/matplotlib/collections.py
@@ -1268,13 +1268,12 @@ def __init__(
1268
1269
@property
1270
def _dep_dir(self):
1271
- match self.ind_dir:
1272
- case "x":
1273
- return "y"
1274
- case "y":
1275
- return "x"
1276
- case _:
1277
- raise ValueError(f"ind_dir must be 'x' or 'y', got '{self.ind_dir}'")
+ if self.ind_dir == "x":
+ return "y"
+ elif self.ind_dir == "y":
+ return "x"
+ else:
+ raise ValueError(f"ind_dir must be 'x' or 'y', got '{self.ind_dir}'")
1278
1279
def set_data(
1280
self, ind, dep1, dep2=0,
0 commit comments