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

Revert explicit linestyle kwarg on step()#11211

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

Conversation

@timhoffm
Copy link
Member

PR Summary

This is a selective revert of#11145 for the kwarg 'linestyle' ofstep().

The intention of#11145 is making relevant kwargs explicit by removing popping from kwargs.

The case here is different. 'linestyle' belongs to a whole set of style parameters that we do not explicitly state. It's not special from a signature point of view and thus should not be listed explicitly. The popping in the code is done for internal rewriting reasons.

raiseValueError("'where' argument to step must be "
"'pre', 'post' or 'mid'")
kwargs['linestyle']='steps-'+where+linestyle
kwargs['linestyle']='steps-'+where+kwargs.get('linestyle','')
Copy link
Contributor

Choose a reason for hiding this comment

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

pop, no?

Copy link
Member

Choose a reason for hiding this comment

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

...he's overwriting the same kwarg...

@dstansbydstansby merged commit60ff88f intomatplotlib:masterMay 10, 2018
@timhoffmtimhoffm deleted the remove-step-linestyle-kwarg branchMay 14, 2018 06:43
@QuLogicQuLogic added this to thev3.0.0 milestoneNov 27, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@anntzeranntzeranntzer left review comments

@jklymakjklymakjklymak approved these changes

@dstansbydstansbydstansby approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

v3.0.0

Development

Successfully merging this pull request may close these issues.

5 participants

@timhoffm@anntzer@jklymak@dstansby@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp