Skip to content

FIX: Return value instead of enum in get_capstyle/_joinstyle #22055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/matplotlib/markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ def _set_fillstyle(self, fillstyle):
self._recache()

def get_joinstyle(self):
return self._joinstyle
return self._joinstyle.name

def get_capstyle(self):
return self._capstyle
return self._capstyle.name

def get_marker(self):
return self._marker
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def set_capstyle(self, s):

def get_capstyle(self):
"""Return the capstyle."""
return self._capstyle
return self._capstyle.name

@docstring.interpd
def set_joinstyle(self, s):
Expand All @@ -501,7 +501,7 @@ def set_joinstyle(self, s):

def get_joinstyle(self):
"""Return the joinstyle."""
return self._joinstyle
return self._joinstyle.name

def set_hatch(self, hatch):
r"""
Expand Down