Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MarkerStyle is considered immutable#19341

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jklymak merged 1 commit intomatplotlib:masterfromtimhoffm:immutable-marker
Jan 28, 2021

Conversation

timhoffm
Copy link
Member

@timhoffmtimhoffm commentedJan 22, 2021
edited
Loading

PR Summary

as discussed in yesterdays dev call.

See also#17850 (comment).

@timhoffmtimhoffm added this to thev3.4.0 milestoneJan 22, 2021
@timhoffmtimhoffmforce-pushed theimmutable-marker branch 7 times, most recently from475462a tod27ab97CompareJanuary 22, 2021 23:13
Copy link
Member

@jklymakjklymak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Overall makes sense to me, but it seemslines.set_fillstyle is not tested? Or did you want to deprecate that as well?

@@ -534,7 +534,7 @@ def set_fillstyle(self, fs):

For examples see :ref:`marker_fill_styles`.
"""
self._marker.set_fillstyle(fs)
self.set_marker(MarkerStyle(self._marker.get_marker(), fs))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I guess we never testset_fillstyle? Can we use this as the opportunity to do so?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'd like to have this deprecation be part of 3.4 and I don't know if I have the bandwidth to add tests soon. Therefore, I'd rather do this in a later PR.

@timhoffm
Copy link
MemberAuthor

timhoffm commentedJan 25, 2021
edited
Loading

As opposed to what I said in the dev call, we cannot easily deprecateLines.set/get_fillstyle. I thoughtget_marker() would return theMarkerStyle so that we could doline.get_marker().get_fillstyle(). However, the usedMarkerStyle object is not public.get_marker() does not return it but only the marker symbol, e.g.'o'.

Therefore, I'll leave marker and fillstyle as "simple" Matplotlib properties ofLine2D for now.

@jklymakjklymak merged commit476b7e4 intomatplotlib:masterJan 28, 2021
@timhoffmtimhoffm deleted the immutable-marker branchJanuary 28, 2021 21:02
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@anntzeranntzeranntzer approved these changes

@jklymakjklymakjklymak approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.4.0
Development

Successfully merging this pull request may close these issues.

4 participants
@timhoffm@anntzer@jklymak@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp