8000 Make MarkerStyle immutable by timhoffm · Pull Request #22952 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Make MarkerStyle immutable #22952

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
May 4, 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
8000
Diff view
5 changes: 5 additions & 0 deletions doc/api/next_api_changes/removals/22952-TH.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
MarkerStyle is immutable
~~~~~~~~~~~~~~~~~~~~~~~~
The methods ``MarkerStyle.set_fillstyle()`` and ``MarkerStyle.set_marker()``
have been removed. Create a new `.MarkerStyle` with the respective parameters
instead.
8 changes: 0 additions & 8 deletions lib/matplotlib/markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,6 @@ def is_filled(self):
def get_fillstyle(self):
return self._fillstyle

@_api.deprecated("3.4", alternative="a new marker")
def set_fillstyle(self, fillstyle):
return self._set_fillstyle(fillstyle)

def _set_fillstyle(self, fillstyle):
"""
Set the fillstyle.
Expand All @@ -327,10 +323,6 @@ def get_capstyle(self):
def get_marker(self):
return self._marker

@_api.deprecated("3.4", alternative="a new marker")
def set_marker(self, marker):
return self._set_marker(marker)

def _set_marker(self, marker):
"""
Set the marker.
Expand Down
0