Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a539d7a

Browse files
committed
Add spine type name into entry of _Spines object
- change `__dir__` of OrderedDict
1 parent 277eeca commit a539d7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/spines.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,9 @@ class _Spines(OrderedDict):
544544
_Spines can be accessed by both key and attribute.
545545
546546
"""
547+
def __dir__(self):
548+
return super().__dir__() + list(self.keys())
549+
547550
def __getattr__(self, key):
548551
return self[key]
549552

0 commit comments

Comments
 (0)