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 1ab92ca commit 16ae44fCopy full SHA for 16ae44f
proplot/axes.py
@@ -345,10 +345,13 @@ def _loc_translate(loc, default=None):
345
if loc in (None, True):
346
loc = default
347
elif isinstance(loc, (str, Integral)):
348
- try:
349
- loc = LOC_TRANSLATE[loc]
350
- except KeyError:
351
- raise KeyError(f'Invalid location {loc!r}.')
+ if loc in LOC_TRANSLATE.values(): # full name
+ pass
+ else:
+ try:
352
+ loc = LOC_TRANSLATE[loc]
353
+ except KeyError:
354
+ raise KeyError(f'Invalid location {loc!r}.')
355
elif np.iterable(loc) and len(loc) == 2 and all(
356
isinstance(l, Number) for l in loc):
357
loc = np.array(loc)
0 commit comments